ReMine | Integrating Local Context and Global Cohesiveness | Graph Database library
kandi X-RAY | ReMine Summary
kandi X-RAY | ReMine Summary
Source code and data for WSDM19' paper "Integrating Local and Global Cohesiveness for Open Information Extraction".
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ReMine
ReMine Key Features
ReMine Examples and Code Snippets
Community Discussions
Trending Discussions on ReMine
QUESTION
I have a simple sklearn class I would like to use as part of an sklearn pipeline. This class just takes a pandas dataframe X_DF
and a categorical column name, and calls pd.get_dummies
to return the dataframe with the column turned into a matrix of dummy variables...
ANSWER
Answered 2017-Oct-17 at 16:25The trace is telling you exactly what went wrong. Learning to diagnose the trace is really quite invaluable especially when you are inheriting from libraries you might not have a complete understanding of.
Now, I have done a fair bit of inheriting in sklearn myself and I can tell you without a doubt GridSearchCV
is going to give you some trouble if the type of data input into your fit
or fit_transform
methods are not NumPy arrays. As Vivek mentioned in his comment the X getting passed to your fit method is no longer a DataFrame. But let's take a look at the trace first.
ValueError: cannot label index with a null key
While Vivek is correct about the NumPy array you have another problem here. The actual error you get is that the value of column
in your fit method is None. If you were to look at your encoder
object above you would see the __repr__
method outputs the following:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ReMine
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page