Coder Social home page Coder Social logo

SynthesizerInputError: Invalid transformer 'NoneType' for a primary or alternate key 'subject_id'. Please use 'AnonymizedFaker' or 'RegexGenerator' instead. about sdv HOT 2 CLOSED

louisedry-quinten avatar louisedry-quinten commented on June 16, 2024
SynthesizerInputError: Invalid transformer 'NoneType' for a primary or alternate key 'subject_id'. Please use 'AnonymizedFaker' or 'RegexGenerator' instead.

from sdv.

Comments (2)

npatki avatar npatki commented on June 16, 2024 1

Thanks for updating the issue @louisedry-quinten and glad you were able to get going.

While primary_key is allowed in the PARSynthesizer, it cannot be the same as sequence_key. The reason is that primary_key is assumed to contain uniquely identifiable IDs for every row (such as an index that always increments). Meanwhile, a sequence_key repeats because it is the same for every row inside of a sequence (eg. the stock market symbol in the demo).

from sdv.

louisedry-quinten avatar louisedry-quinten commented on June 16, 2024

Found my own mistake after checking the metadata from the tutorial (https://colab.research.google.com/drive/1YLk2uwn8yrSRPy0soEeJwu8Hdk_tGTlE?usp=sharing#scrollTo=D19y1UOOJ-Pv).
"primary_key"should be removed from the metadata before fitting the model.

from sdv.

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.