Lucia Bazan
Lucia Bazan

Reputation: 17

Problems with fit_transform. Error object has no attribute 'fit_transform'

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

Answers (1)

piman314
piman314

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

Related Questions