Properties
compiled
compiled: boolean
Optional featureIds
featureIds?: Matrix
Optional featureToId
featureToId?: FeatureToId
getContextPairs
getContextPairs: (this: any, __namedParameters: { inputMatrix: Matrix; numberOfFeatures: number; tf?: any; window_size?: number }) => Promise<{ context_length: number; emptyXVector: any; emptyYVector: any; x: Matrix; y: Matrix }>
Type declaration
- (this: any, __namedParameters: { inputMatrix: Matrix; numberOfFeatures: number; tf?: any; window_size?: number }): Promise<{ context_length: number; emptyXVector: any; emptyYVector: any; x: Matrix; y: Matrix }>
Parameters
this: any
__namedParameters: { inputMatrix: Matrix; numberOfFeatures: number; tf?: any; window_size?: number }
inputMatrix: Matrix
numberOfFeatures: number
Optional tf?: any
Optional window_size?: number
Returns Promise<{ context_length: number; emptyXVector: any; emptyYVector: any; x: Matrix; y: Matrix }>
getFeatureDataSet
getFeatureDataSet: (this: any, __namedParameters: { PAD?: string; initialFeatureToId?: FeatureToId; initialIdToFeature?: IdToFeature; inputMatrixFeatures: Corpus }) => Promise<{ featureIds: number[][]; featureToId: {}; idToFeature: IdToFeature; numberOfFeatures: number }>
Type declaration
- (this: any, __namedParameters: { PAD?: string; initialFeatureToId?: FeatureToId; initialIdToFeature?: IdToFeature; inputMatrixFeatures: Corpus }): Promise<{ featureIds: number[][]; featureToId: {}; idToFeature: IdToFeature; numberOfFeatures: number }>
Parameters
this: any
__namedParameters: { PAD?: string; initialFeatureToId?: FeatureToId; initialIdToFeature?: IdToFeature; inputMatrixFeatures: Corpus }
Optional PAD?: string
Optional initialFeatureToId?: FeatureToId
Optional initialIdToFeature?: IdToFeature
inputMatrixFeatures: Corpus
Returns Promise<{ featureIds: number[][]; featureToId: {}; idToFeature: IdToFeature; numberOfFeatures: number }>
getInputShape
getInputShape: (...args: any[]) => any
getMergedArray
getMergedArray: (base?: Vector, merger?: Vector, append?: boolean, truncate?: boolean) => any[]
Type declaration
- (base?: Vector, merger?: Vector, append?: boolean, truncate?: boolean): any[]
Parameters
base: Vector = []
merger: Vector = []
append: boolean = false
truncate: boolean = true
Returns any[]
Optional getTimeseriesShape
getTimeseriesShape?: (x_timeseries: undefined | NestedArray<any>) => Shape
Type declaration
- (x_timeseries: undefined | NestedArray<any>): Shape
Parameters
x_timeseries: undefined | NestedArray<any>
Returns Shape
Optional idToFeature
idToFeature?: IdToFeature
Optional importedEmbeddings
importedEmbeddings?: boolean
Optional layers
layers?: TensorScriptLayers
Optional loss
loss?: number
Optional numberOfFeatures
numberOfFeatures?: number
reshape
reshape: (...args: any[]) => any
settings
settings: TensorScriptOptions
Optional xShape
xShape?: number[]
Optional yShape
yShape?: number[]
use a corpus to generate features from an embedding layer with Tensorflow
{BaseNeuralNetwork}