Code Monkey home page Code Monkey logo

early_stopping's People

Contributors

hongym7 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

early_stopping's Issues

main principle

Hello,

your README is not very long. Therefore, I want to ask on this way. Is this function an implementation of the Early Stopping feature for the Tensorflow Object-Detection? Do I only have to copy this function in the ../models/research/object_detection/ folder and execute it as the provided model_main.py by the official Tensorflow OD API?

How should I use it? As far as I understood it, the function searches for an convergence in the first 100k iterations (default value), am I right? What is the criterion to abort the training process?

Kind Regards


EDIT:

If I copy the function inside the folder and execute it, I get the following error message:
TypeError: create_train_and_eval_specs() missing 2 required positional arguments: 'predict_input_fn' and 'train_steps'

Obviously, train_input_fn and train_steps are missing. Please clarify why they are missing.

What is this part used for ?

Hi, I see that in your code there is this part:

early_stopping1 = tf.contrib.estimator.stop_if_no_decrease_hook(
        estimator,
        metric_name='loss_1',
        max_steps_without_decrease=5,
        min_steps=0
    )

    early_stopping2 = tf.contrib.estimator.stop_if_no_decrease_hook(
        estimator,
        metric_name='loss_2',
        max_steps_without_decrease=5,
        min_steps=0
    )

    early_stopping3 = tf.contrib.estimator.stop_if_lower_hook(
        estimator,
        metric_name='loss_1',
        threshold=10,
        eval_dir=None,
        min_steps=0,
        run_every_secs=60,
    run_every_steps=None
)

May I ask what is it used for ? Because I do not see those variables being used anywhere in the code. Thank you very much.

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.