Options
All
  • Public
  • Public/Protected
  • All
Menu

@jsonstack/jsonm

Index

References

JSONModel

Renames and exports ModelX

Functions

getDataSet

  • getDataSet(jds?: JDS | Data): Promise<Data>
  • Returns Data from JSON Dataset

    Parameters

    • jds: JDS | Data = ...

    Returns Promise<Data>

getGeneratedStatefulFunction

  • getGeneratedStatefulFunction(__namedParameters: GeneratedStatefulFunctionParams): GeneratedStatefulFunction
  • Takes an object that describes a function to be created from a function body string

    example

    getGeneratedStatefulFunction({ variable_name='myFunctionName', function_body='return 3', function_name_prefix='customFunction_', }) => function customFunction_myFunctionName(state){ 'use strict'; return 3; }

    Parameters

    • __namedParameters: GeneratedStatefulFunctionParams

    Returns GeneratedStatefulFunction

Const getModel

  • getModel(jml?: JML): Promise<ModelX>

getModelFromJSONM

  • getModelFromJSONM(jml?: JML): Promise<ModelX>

getModelTrainingOptions

  • getModelTrainingOptions(__namedParameters?: { accuracy_target?: number }): { fit: { batchSize: number; epochs: number } }
  • Parameters

    • __namedParameters: { accuracy_target?: number } = ...
      • Optional accuracy_target?: number

    Returns { fit: { batchSize: number; epochs: number } }

    • fit: { batchSize: number; epochs: number }
      • batchSize: number
      • epochs: number

sumPreviousRows

  • sumPreviousRows(options: SumPreviousRowsOptions): number
  • Parameters

    • options: SumPreviousRowsOptions

    Returns number