Code Monkey home page Code Monkey logo

Comments (6)

1025KB avatar 1025KB commented on September 21, 2024

Currently for ExampleGen, you are able to customize the input and output split doc, but downstream components only support train and eval split for now

We don't have a offical support yet, but you can customize the Trainer component for the k-fold and train/evaluation/validation splits, you can think tfx eval split is the validation split you mentioned, and tfx train split is the train/evaluation you mentioned, in custom Trainer component, convert the train split as train/evaluation and do k-fold for tuning the model

I will keep this issue as a feature request

from tfx.

gowthamkpr avatar gowthamkpr commented on September 21, 2024

I am gonna close this issue as it has been resolved. Please add additional comments and we can open this issue again. Thanks!

from tfx.

lelayf avatar lelayf commented on September 21, 2024

It is not clear to me how this issue has been resolved. Can someone advise?

from tfx.

1025KB avatar 1025KB commented on September 21, 2024

Hi, Currently custom split is fully supported for examplegen and its downstream, you should be able to utilize the splits in GenericTrainer's run_fn based on the needs

from tfx.

lelayf avatar lelayf commented on September 21, 2024

I consume a balanced dataset (50% positive/50% negative labels for binary classification), what I need is the equivalent of scikit-learn's StratifiedKFold, which ensures every split remains balanced. At the moment this does not seem possible and my splits are heavily imbalanced after splitting. Also, I don't think the partition_feature_name would help this use case.

from tfx.

1025KB avatar 1025KB commented on September 21, 2024

I see, our split is just random split, so it might because the dataset is relatively small thus the results are not perfectly balanced as input.

Tensorflow dataset has an api to split data, but I'm not sure if that will guarantee the balance. If that works, you can just pass a single train split to GenericTrainer, and in the run_fn, split the dataset and do the cross validation.

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.