Giter Site home page Giter Site logo

Comments (5)

tmontana avatar tmontana commented on May 30, 2024 1

Thanks for the detailed explanation. The precision issue makes sense as well.

from gretel-synthetics.

johntmyers avatar johntmyers commented on May 30, 2024

@tmontana when you say continuous do you mean monotonic (like increasing / decreasing values i.e. timestamps, counters, etc) or values that exist in set ranges like an age, etc.?

from gretel-synthetics.

tmontana avatar tmontana commented on May 30, 2024

I mean a column containing any real valued number: 0.99836655477 as a random float example.

from gretel-synthetics.

amysteier avatar amysteier commented on May 30, 2024

During training, the fields in a record of input data are all first parsed into a series of tokens. The parsing is somewhat agnostic as to whether a particular field value is numeric or categorical. Tokens can be either character n-grams or word/number n-grams. A number like 352.4 may end up being one token (352.4), or two tokens (352 and .4) or potentially even more tokens. The chance of a string of characters becoming a token has to do with the probability of that string occurring in the training set.
When generating, the next token is always predicted based on the previous tokens predicted by the model. One of the tokens that can be predicted is the field delimiter (usually something like ","). Again, the model is agnostic as to whether the combined tokens between two field delimiters is numeric or not. The process works quite well for continuous values. It synthesizes an all new series of values for a continuous field, with the same distribution and range as the original series, yet not exactly the same numbers.

from gretel-synthetics.

amysteier avatar amysteier commented on May 30, 2024

Additionally, it's worth noting that if your float values have an extremely high precision (as in your example), and all you really care about is a precision like .9983, then you're better off first truncating your floats before you do the training. The model has an easier learning task and will end up doing a better job when synthesizing.

from gretel-synthetics.

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.