scverse / scverse/pertpy

Got an error when using 'random_forest_regressor' estimator

Open
#655 5 comments 0 reactions 1 assignee View on GitHub

@Zethson is already working on this.

Since Sep 16, 2024.

Dominant language
Python
Stars
345
Forks
66
Avg merge
1d 4h
Merged PRs (30d)
13

Description

Since my data had four timepoints-treated conditions, I tried to use 'random_forest_regressor ' estimator which was described for continuous data in the tutorial:
augur = pt.tl.Augur("random_forest_regressor")
treat_augur=augur.load(treat,label_col='group',cell_type_col='celltype')
treat_augur, treat_augur_results = augur.predict(treat_augur, random_state=None, n_threads=4)
However, I got an error in the predicting step:
AttributeError: RandomForestRegressor has none of the following attributes: predict_proba.
What should I do?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.