dataset-types 3.3.10 → 3.3.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/attention2.d.ts CHANGED
@@ -208,3 +208,19 @@ export interface IForwardResult {
208
208
  PredictionProb_m?: ISequenceMatrix;
209
209
  predictions?: INamedEmbedding[];
210
210
  }
211
+ export interface IAttentionModelContextInputs {
212
+ queries: INamedEmbedding[];
213
+ keys: INamedEmbedding[];
214
+ weights: INamedEmbedding[];
215
+ outputs?: INamedEmbedding[];
216
+ prediction_sequence: string[];
217
+ context: number[];
218
+ prediction: INamedPrediction;
219
+ }
220
+ export interface IAttentionModelInputs {
221
+ useWeights: boolean;
222
+ weights_key: Matrix;
223
+ weights_query: Matrix;
224
+ weights_value: Matrix;
225
+ embeddings: INamedEmbedding[];
226
+ }
package/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { IVector, IMatrix, IExpression, IValueMetadata, IValueData, IValueMatrix, INeuron, INetwork, INNValue, INNLayer, IValueNetworkDisplayOption, INNMatrix, INNSpecification, IMatrixSpecification, INNTrainable, ITrainingExample, IOptimizer, ILearningConfig, ILearnable, IEventCollector, ITrainingDataSet, ITransformerSpecification, IValueTransformer, IValueTransformerInstance } from './valuedata';
2
- import { IAttention2Model, IAttention2ModelFactory, IForwardResult, IModelSpecification, INamedEmbedding, ISequenceMatrix, ITransformerExample, ITransformerModel, IDenseLayer, IMLP, ISGD, ITransformerTraining, ITrainData, ITrainer } from './attention2';
3
- export { IVector, IMatrix, IExpression, IValueMetadata, IValueData, IValueMatrix, INeuron, INetwork, INNValue, INNLayer, IValueNetworkDisplayOption, INNMatrix, INNSpecification, IMatrixSpecification, INNTrainable, ITrainingExample, IOptimizer, ILearningConfig, ILearnable, IEventCollector, ITrainingDataSet, ITransformerSpecification, IValueTransformer, IValueTransformerInstance, IAttention2Model, IAttention2ModelFactory, IForwardResult, IModelSpecification, INamedEmbedding, ISequenceMatrix, ITransformerExample, ITransformerModel, ITransformerTraining, IDenseLayer, IMLP, ISGD, ITrainData, ITrainer };
2
+ import { IAttention2Model, IAttention2ModelFactory, IForwardResult, IModelSpecification, INamedEmbedding, ISequenceEmbeddings, ISequenceMatrix, ITransformerExample, ITransformerModel, IDenseLayer, IMLP, ISGD, ITransformerTraining, ITrainData, ITrainer, IAttentionModelInputs, IAttentionModelContextInputs } from './attention2';
3
+ export { IVector, IMatrix, IExpression, IValueMetadata, IValueData, IValueMatrix, INeuron, INetwork, INNValue, INNLayer, IValueNetworkDisplayOption, INNMatrix, INNSpecification, IMatrixSpecification, INNTrainable, ITrainingExample, IOptimizer, ILearningConfig, ILearnable, IEventCollector, ITrainingDataSet, ITransformerSpecification, IValueTransformer, IValueTransformerInstance, IAttention2Model, IAttention2ModelFactory, IForwardResult, IModelSpecification, INamedEmbedding, ISequenceEmbeddings, ISequenceMatrix, ITransformerExample, ITransformerModel, ITransformerTraining, IDenseLayer, IMLP, ISGD, ITrainData, ITrainer, IAttentionModelInputs, IAttentionModelContextInputs };
4
4
  type BufferEncoding = "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "latin1" | "binary" | "hex";
5
5
  export interface ICommandResult {
6
6
  status: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dataset-types",
3
- "version": "3.3.10",
3
+ "version": "3.3.12",
4
4
  "scripts": {
5
5
  "start": "npm run build && npm run package",
6
6
  "build": "tsc --rootDir 'src/types' --outDir './dist'",