Improve compatability with the set_output
API from scikit-learn
#46
Labels
🪲 bug
Something isn't working
💪 enhancement
New feature or request
hacktoberfest
hacktoberfest 2023
🥺 help wanted
Extra attention is needed
Milestone
Description
All the transformers from
chemotools
are compatible withscikit-learn
, that is the objective ofchemotools
👍. In one of the most recent releases ofscikit-learn
they have introduced theset_output
API, which basically allows the user to define anpandas
as output. This will produce apandas.DataFrame
object as output instead of the defaultnumpy.ndarray
. This works fine with most ofchemotools
transformers, but I have some specific issues:👉 The column names are lost after the transformation
When I use a
chemotools
transformer setup to produce apandas.DataFrame
, it does not keep the column names, and produces an output without column names. I have compared the functionality with otherscikit-learn
transformers (such asStandardScaler()
, and I have seen that they do keep the column names in the output.👉 The API does not work when the transformer reduces the number of features
Some transformers will reduce the number of features on our dataset (e.g., will select a subset of columns from it). These are under the variable selection transformers. I don't really know how to fix this issue.
Hacktoberfest Challenge
We invite open source developers to contribute to our project during Hacktoberfest. The goal is to improve compatibility with the
set_output
APIHow to Contribute
Here is the contributing guidelines
Contact
[We can have the the conversation in the Issue or the Discussion](#45)
Resources
👉 Link to
set_output
API formscikit-learn
👉Link to problem description
The text was updated successfully, but these errors were encountered: