Giter VIP home page Giter VIP logo

Comments (5)

krazyhaas avatar krazyhaas commented on August 27, 2024

That's a bug. I'll work on a fix (second in my queue).

from tfx.

krazyhaas avatar krazyhaas commented on August 27, 2024

Hi Loic -- what are you using as the stop condition for your estimator? I'm curious how a "runs forever" Trainer configuration behaves in airflow/kubeflow. If you're raising an error after n passes through the data, the error should abort the remainder of the pipeline execution as well.

from tfx.

loiccordone avatar loiccordone commented on August 27, 2024

Well I'm not raising an error, I'm simply defining the num_epoch in my inputs with the Estimator API (I can add precisions tomorrow), and the training stops exactly after num_epoch epochs.

from tfx.

krazyhaas avatar krazyhaas commented on August 27, 2024

To confirm, your TrainSpec looks something like

  train_spec = tf.estimator.TrainSpec( 
      train_input_fn,
      # max_steps=hparams.train_steps,
      max_steps=None,
      num_epochs=1)

?

from tfx.

loiccordone avatar loiccordone commented on August 27, 2024

The configuration is done in the input_fn, not in the TrainSpec:
train_input_fn = lambda: utils.input_fn(hparams.train_files, hparams.transform_output, batch_size=train_batch_size, num_epochs=1)

And this call to read_batch_features in my utils.input_fn:
tf.contrib.learn.io.read_batch_features(filenames, batch_size, transformed_feature_spec, reader=_gzip_reader_fn, num_epochs=num_epochs)

A deprecated function, but it is used in the Taxi example.

from tfx.

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.