We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The current transform_table throws AttributeError when step is not fitted.
import ibisml as ml t = ibis.memtable({"a": [1, 2, 3], "b": [2,3,4], "c": [3,4,5]}) step = ml.CountEncode(ml.string()) step.transform_table(t)
----> 1 step.transform_table(t) File /Users/voltrondata/repos/ibisml/ibisml/steps/encode.py:281, in CountEncode.transform_table(self, table) 280 def transform_table(self, table: ir.Table) -> ir.Table: --> 281 for c, value_counts in self.value_counts_.items(): 282 joined = table.left_join( 283 value_counts, table[c] == value_counts[0], lname="left_{name}", rname="" 284 ) 285 table = joined.drop(value_counts.columns[0], f"left_{c}").rename( 286 {c: f"{c}_count"} 287 ) AttributeError: 'CountEncode' object has no attribute 'value_counts_'
Ensure step is fitted when transform_table, otherwise throws proper error, such as NotFitError
step
transform_table
NotFitError
The text was updated successfully, but these errors were encountered:
Does this also happen when used as part of a scikit-learn pipeline? If not, this may be slightly lower priority.
Putting as P2 for now; feel free to increase to P1 or higher if it does happen in scikit-learn pipeline, too.
Sorry, something went wrong.
jitingxu1
No branches or pull requests
The current transform_table throws AttributeError when step is not fitted.
Desired output
Ensure
step
is fitted whentransform_table
, otherwise throws proper error, such asNotFitError
The text was updated successfully, but these errors were encountered: