jkobject / geneformer

37 stars 3 forks source link

how to install ? #4

Open noob000007 opened 3 months ago

noob000007 commented 3 months ago

/envs/geneformer_ycx/lib/python3.10/site-packages/geneformer-0.1.0-py3.10.egg/geneformer/classifier.py:1245, in Classifier.train_classifier(self, model_directory, num_classes, train_data, eval_data, output_directory, predict) 1241 ##### Fine-tune the model ##### 1242 # define the data collator 1243 if self.classifier == "cell": 1244 data_collator = DataCollatorForCellClassification( -> 1245 token_dictionary=self.token_dictionary 1246 ) 1247 elif self.classifier == "gene": 1248 data_collator = DataCollatorForGeneClassification( 1249 token_dictionary=self.token_dictionary 1250 )

AttributeError: 'Classifier' object has no attribute 'token_dictionary'

noob000007 commented 3 months ago

Can you explain in more detail? I don’t quite get what you mean, such as why the error occurred and the purpose of installing this.