mittyone
@mittyone (... ...)

Are you sure you want to delete the question?

If your question is resolved, you may close it.

Leaving a resolved question undeleted may help others!

We hope you find it useful!

Random survival forest

解決したいこと

!pip install scikit-survivalをインストールして
random survival foresetを実装したいのですが

発生している問題・エラー

from sksurv.ensemble import RandomSurvivalForest
にて

/usr/local/lib/python3.8/dist-packages/pkg_resources/init.py in resolve(self, requirements, env, installer, replace_conflicting, extras)
775 # Oops, the "best" so far conflicts with a dependency
776 dependent_req = required_by[req]
--> 777 raise VersionConflict(dist, req).with_context(dependent_req)
778
779 # push the new requirements onto the stack

ContextualVersionConflict: (scikit-learn 1.2.1 (/usr/local/lib/python3.8/dist-packages), Requirement.parse('scikit-learn<1.2,>=1.1.2'), {'scikit-survival'})

が表示されます

該当するソースコード

python

!pip install scikit-survival
from sksurv.ensemble import RandomSurvivalForest

自分で試したこと

scikit-learn 1.1.2
をインストールしようとしましたが公開されていません。

random survival forest実装にはsksurvは使う必要がありそうですが 他に方法はありませんか

0

1Answer

This answer has been deleted for violation of our Terms of Service.

Your answer might help someone💌