Coder Social home page Coder Social logo

Comments (3)

zeynepkoyun avatar zeynepkoyun commented on June 5, 2024

Hi @aibharata

When we want to stop the training early with medicalai via a callback called EarlyStopping, it gives an error at line 209 in the file "medicalai/chief/core.py". How should the data be defined here, because it is desired to behave like a string first and then a dictionary. Can you share sample data?

Error line

if bestModelCond is not None and bestModelCond.lower() != 'default': print('\n[INFO]: ENGINE INITIALIZED WITH "SAVING BEST MODEL" and Early Stopping MODE\n') earlystop_callback = tf.keras.callbacks.EarlyStopping( monitor=bestModelCond['monitor'], min_delta=bestModelCond['min_delta'], patience=bestModelCond['patience'] ) if callbacks is None: callbacks=[earlystop_callback] else: callbacks.append(earlystop_callback)

Hi @aibharata

is there any progress on this?

from medicalai.

aibharata avatar aibharata commented on June 5, 2024

Hi @zeynepkoyun,

Thank you for bringing this to our notice. There are a few bugs here. bestModelCond = 'default' should have initialized the conditions, but it doesn't as of now.

Currently, it expects a dictionary. You can initialize and pass bestModelCond like this :

bestModelCond  = {
    monitor='val_accuracy', 
    patience=8, 
    min_delta=0.001, 
}

We will issue a bug fix in a few days to support more conditions.

By the way, which version are you using currently? 1.1.59 or 1.2.9.2rc0

from medicalai.

zeynepkoyun avatar zeynepkoyun commented on June 5, 2024

Merhaba @zeynepkoyun ,

Bunu dikkatimize sunduğunuz için teşekkür ederiz. Burada birkaç bug var. bestModelCond = 'default' koşulları başlatmalıydı, ama şu an için değil.

Şu anda, bir sözlük bekliyor. bestModelCond'u şu şekilde başlatabilir ve iletebilirsiniz:

bestModelCond  = {
    monitor='val_accuracy', 
    patience=8, 
    min_delta=0.001, 
}

Daha fazla koşulu desteklemek için birkaç gün içinde bir hata düzeltmesi yayınlayacağız.

Bu arada, şu anda hangi sürümü kullanıyorsunuz? 1.1.59 or 1.2.9.2rc0

Hi @aibharata
I'll try and let you know.
The version I am currently using is 1.1.59.
I will be waiting for the new version.

from medicalai.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.