Skip to content
New issue

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

Unexpected keyword argument seed when initializing IForest via Python API #47

Open
AnirbanChakraborty06 opened this issue Sep 19, 2023 · 1 comment

Comments

@AnirbanChakraborty06
Copy link

When I try to initialize the model (as per Python API convention) using the below statement -

from pyspark_iforest.ml.iforest import IForest

iforest = IForest(
    numTrees=100,
    maxSamples=256,
    maxFeatures=len(features),
    contamination=0.025,
    bootstrap=False,
    seed=42,
)

I receive the error - TypeError: __init__() got an unexpected keyword argument 'seed'. However, when seed argument is removed all works as usual.

Note: Used spark3 branch to generate the distribution .tar.gz file.

@titicaca
Copy link
Owner

seed was not exposed in the Python api, you can use scala api or add the param in the python wrapper

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants