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

how to install ? #4

Open
noob000007 opened this issue Aug 28, 2024 · 3 comments
Open

how to install ? #4

noob000007 opened this issue Aug 28, 2024 · 3 comments

Comments

@noob000007
Copy link

/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
Copy link
Author

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.

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
@noob000007 and others