export model as C++ file

Welcome Forums Help export model as C++ file

This topic contains 3 replies, has 2 voices, and was last updated by  zygmunt 5 months, 1 week ago.

  • Author
    Posts
  • #509

    zygmunt
    Participant

    Can’t seem to find this option in any of the menus in wekinator. Is it hidden away somewhere?

  • #511

    Rebecca
    Keymaster

    Hi there, this option isn’t yet in the official “release” builds of Wekinator, but you can get it by either (1) building Wekinator from the current source (https://github.com/fiebrink1/wekinator), or (2) using Michael ZbyszyƄski’s fork at https://github.com/mzed/wekimini (which has release versions you can download if you don’t want to build from source). Using either of these versions, every time you save a project, Wekinator will automatically save the C++ versions of the trained models within the project directory.

  • #524

    zygmunt
    Participant

    That’s great. Thanks so much, I’ll be sure to check it out!

  • #525

    zygmunt
    Participant

    Hi Rebecca,

    Wondering if you could help me get my head around how this works in c++ now. If I had 14 inputs when creating my model, how do I then feed these inputs into the c++ model?

    Michael says that for model usage it is:

    //Wekinator model usage
    double* modelOutput = trainedModels.passInputToModels(toModel);

    What gets sent through this function and where do the 14 inputs come into play?

    Thanks!!

You must be logged in to reply to this topic.

  •  
  •  
  •  
  •  
  •