AravindR7 / Topic-Modeling-BERT-LDA

# Topic modeling with BERT, LDA and Clustering. Latent Dirichlet Allocation(LDA) probabilistic topic assignment and pre-trained sentence embeddings from BERT/RoBERTa.
51 stars 11 forks source link

AttributeError: 'Autoencoder' object has no attribute 'fit' #1

Open Kashi7 opened 2 years ago

Kashi7 commented 2 years ago

AttributeError: 'Autoencoder' object has no attribute 'fit' fit_transform also not working. Please help me resolve this

AmrAhmedElagoz commented 2 years ago

fit is a method not an attribute in class Autoencoder

yqisthi commented 1 year ago

I got the same problem. I changed nothing in the code except using my own dataset. But it throws the erorr

fatemeakbari commented 1 month ago

AttributeError: 'Autoencoder' object has no attribute 'fit' fit_transform also not working. Please help me resolve this

The fit method has an extra space by mistake:


def _compile(self, input_dim):
    .....

    def fit(self, X):
     .....

that must be:

def _compile(self, input_dim):
    .....

def fit(self, X):
    .....
     `
genewlan commented 6 days ago

AttributeError: 'Autoencoder' object has no attribute 'fit' fit_transform also not working. Please help me resolve this

The blogger has a disgusting action. The whole proglem code store at Kaggle. he modified the code by adding some small bugs, such as adding a tabs(the key problem of fit) and changing the str"decoded" to "docoded".

This is the behavior of an Indian.