Skip to content

Fix AttributeError in benchmark_expression_conversion Method#6

Closed
ayyucedemirbas wants to merge 2 commits into
vandijklab:masterfrom
ayyucedemirbas:master
Closed

Fix AttributeError in benchmark_expression_conversion Method#6
ayyucedemirbas wants to merge 2 commits into
vandijklab:masterfrom
ayyucedemirbas:master

Conversation

@ayyucedemirbas

Copy link
Copy Markdown

This pull request addresses an AttributeError encountered in the benchmark_expression_conversion method of the utils.py module in the cell2sentence repository. The error occurred when attempting to access the .item() method on values that are of type float, which does not have this method.

Modified the lines in the benchmark_expression_conversion method to handle float values correctly. Removed the .item() method call on the r_squared_score, pearson_r_score, and spearman_r_score metrics since they return floats directly.

This pull request addresses an AttributeError encountered in the benchmark_expression_conversion method of the utils.py module in the cell2sentence repository. The error occurred when attempting to access the .item() method on values that are of type float, which does not have this method.

Modified the lines in the benchmark_expression_conversion method to handle float values correctly.
Removed the .item() method call on the r_squared_score, pearson_r_score, and spearman_r_score metrics since they return floats directly.
Adding LoRA Fine-Tuning
@ayyucedemirbas

Copy link
Copy Markdown
Author

Added LoRA fine-tuning using peft. However, I'm not able to try it, because, since I'm working on Google Colab, CUDA memory is not enough to fine-tune the model. Could you please try it for me? @SyedA5688 Thank you so much!

@dvdijk

dvdijk commented Oct 14, 2024 via email

Copy link
Copy Markdown

@beshatu

beshatu commented Jan 13, 2025

Copy link
Copy Markdown

AttributeError: 'float' object has no attribute 'item'

@ayyucedemirbas ayyucedemirbas closed this by deleting the head repository Jun 6, 2026
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

Successfully merging this pull request may close these issues.

3 participants