Coder Social home page Coder Social logo

Comments (9)

skochanny avatar skochanny commented on June 14, 2024

Have early_stop_value='loss' in HP

from slideflow.

jamesdolezal avatar jamesdolezal commented on June 14, 2024

What is your Tensorflow version? And what branch are you on?

from slideflow.

skochanny avatar skochanny commented on June 14, 2024

tensorflow 2.0.0-beta1, on nightly branch. i switched to master but that doesn't have latest updates we've made like adding the newest hyperparameters

from slideflow.

jamesdolezal avatar jamesdolezal commented on June 14, 2024

This is due to the fact that Tensorflow changed how the accuracy metric is stored in the "logs" dictionary, from 'acc' to 'accuracy'. The latest dev branch reflects this update but has not yet been merged into nightly. To circumvent the issue until I merge into nightly, search for all instances of 'acc' in slideflow/model.py and replace with 'accuracy'. There should be 9 instances.

I'll hopefully be able to merge my dev changes into nightly soon.

Edit: I'd also recommend upgrading Tensorflow to v2.1, as there was a security flaw found in 2.0 that has been subsequently patched. Requirements for the Slideflow package is now TF v > 2.1

from slideflow.

skochanny avatar skochanny commented on June 14, 2024

i replaced all of the 'acc' with 'accuracy' but that did not solve the problem. I deleted the acc: logs['accuracy'] part from the string in line 705 and that did solve the problem. i think that the logs object must not contain 'accuracy' (I wasn't sure what exactly logs was). The logs['loss'] works, so it's something with 'accuracy' specifically. So i'm not sure how to fix that, but it's working right now.
I upgraded to TF 2.1, which required update on the machine to CUDA 10.1.

from slideflow.

jamesdolezal avatar jamesdolezal commented on June 14, 2024

What outcomes are you training to, and are the outcomes linear or categorical?

from slideflow.

skochanny avatar skochanny commented on June 14, 2024

right now, linear. haven't tested with categorical

from slideflow.

jamesdolezal avatar jamesdolezal commented on June 14, 2024

Figured it out. It was a problem in the logging of the exponential moving average, which assumed you were using a categorical model. I've now fixed it so that it will work with linear models. Doing some final bug checking before pushing the update, will let you know when the update hits the dev or nightly branch.

from slideflow.

jamesdolezal avatar jamesdolezal commented on June 14, 2024

Fixed in c856426

from slideflow.

Related Issues (20)

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.