Reputation: 17
Ok I have this code
import anchor
bm = anchor.BayesianModalities()
modalities = bm.fit_transform(data)
but shows me this error
AttributeError: 'BayesianModalities' object has no attribute 'fit_transform'
What Can be it?
Upvotes: 0
Views: 2937
Reputation: 5355
This looks like an issue with the README
, the method is actually fit_predict
rather than fit_transform
. Give the below a try.
import anchor
bm = anchor.BayesianModalities()
modalities = bm.fit_predict(data)
Upvotes: 1