Options
All
  • Public
  • Public/Protected
  • All
Menu

Deep Learning Classification with Tensorflow

implements

{BaseNeuralNetwork}

Hierarchy

Index

Constructors

constructor

Properties

compiled

compiled: boolean

getInputShape

getInputShape: (...args: any[]) => any

Type declaration

    • (...args: any[]): any
    • Parameters

      • Rest ...args: any[]

      Returns any

Optional getTimeseriesShape

getTimeseriesShape: (x_timeseries: NestedArray<any> | undefined) => Shape

Type declaration

Optional layers

model

model: any

reshape

reshape: (...args: any[]) => any

Type declaration

    • (...args: any[]): any
    • Parameters

      • Rest ...args: any[]

      Returns any

settings

tf

tf: any

tokenizer

tokenizer: any

trained

trained: boolean

type

type: string

Optional xShape

xShape: number[]

Optional yShape

yShape: number[]

Methods

calculate

exportConfiguration

generateLayers

  • Adds dense layers to tensorflow classification model

    override

    Parameters

    Returns void

importConfiguration

loadModel

  • loadModel(options: string): Promise<any>

predict

  • Returns prediction values from tensorflow model

    Parameters

    Returns Promise<any>

    predicted model values

saveModel

  • saveModel(options: string): Promise<any>

train

  • Asynchronously trains tensorflow model

    override

    Parameters

    Returns Promise<any>

    returns trained tensorflow model

Static getInputShape

  • getInputShape(matrix?: any): Shape

Static reshape

  • Reshapes an array

    function
    example

    const array = [ 0, 1, 1, 0, ]; const shape = [2,2]; TensorScriptModelInterface.reshape(array,shape) // => [ [ 0, 1, ], [ 1, 0, ], ];

    Parameters

    Returns Matrix | Vector

    returns a matrix with the defined shape