reginabarzilaygroup / Sybil

Deep Learning for Lung Cancer Risk Prediction using LDCT
MIT License
62 stars 38 forks source link

AttributeError: 'CalibratedClassifier' object has no attribute 'estimator' #23

Closed sadia-rumi55 closed 7 months ago

sadia-rumi55 commented 9 months ago

Hi, I am facing error while i am trying to run from sybil import Serie, Sybil

# Load a trained model
model = Sybil("sybil_base")

# Get risk scores
serie = Serie([dicom_path_1, dicom_path_2, ...])
scores = model.predict([serie])

# You can also evaluate by providing labels
serie = Serie([dicom_path_1, dicom_path_2, ...], label=1)
results = model.evaluate([serie])

MicrosoftTeams-image (1)

Then I tried to install the packages from requirement.txt but it is not allowing me to install the version of the Scikit-learn. I was wondering if you have any solution that would be helpful. Thanks in advance.

pgmikhael commented 9 months ago

Hi!

You're right that this is probably due to updates to the scikit-learn package that are not always backwards compatible. It should be version 1.0.2. Can you share some details about your environment (how it was set up, python version, package versions, etc.)? This repo has also been updated, and the package requirements can be found in setup.cfg.