@salesforce/lds-adapters-platform-cdp-machine-learning 1.311.1 → 1.312.0
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/dist/es/es2018/platform-cdp-machine-learning.js +24 -37
- package/dist/es/es2018/types/src/generated/types/CdpMlBinaryClassificationPredictionResultRepresentation.d.ts +33 -0
- package/dist/es/es2018/types/src/generated/types/CdpMlFieldValueRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/CdpMlGenericPredictionOutputValueRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/CdpMlGenericPredictionResultRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/CdpMlPredictResultRepresentation.d.ts +7 -5
- package/dist/es/es2018/types/src/generated/types/CdpMlPredictionBaseRepresentation.d.ts +11 -6
- package/dist/es/es2018/types/src/generated/types/CdpMlPredictionContributionBaseRepresentation.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/types/CdpMlPredictionContributionFieldRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/CdpMlPredictionErrorRepresentation.d.ts +33 -0
- package/dist/es/es2018/types/src/generated/types/CdpMlPredictionFieldCustomTextRepresentation.d.ts +33 -0
- package/dist/es/es2018/types/src/generated/types/CdpMlPredictionSuccessBaseRepresentation.d.ts +51 -0
- package/dist/es/es2018/types/src/generated/types/CdpMlPredictionWarningsRepresentation.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/types/CdpMlRegressionPredictionResultRepresentation.d.ts +30 -0
- package/package.json +3 -3
- package/sfdc/index.js +25 -38
- package/src/raml/api.raml +161 -3
- package/src/raml/luvio.raml +0 -3
|
@@ -5325,38 +5325,27 @@ function validate$3(obj, path = 'CdpMlAggregatePredictionRepresentation') {
|
|
|
5325
5325
|
return v_error === undefined ? null : v_error;
|
|
5326
5326
|
}
|
|
5327
5327
|
|
|
5328
|
+
var DiscriminatorValues$1;
|
|
5329
|
+
(function (DiscriminatorValues) {
|
|
5330
|
+
DiscriminatorValues["Regression"] = "Regression";
|
|
5331
|
+
DiscriminatorValues["BinaryClassification"] = "BinaryClassification";
|
|
5332
|
+
DiscriminatorValues["Generic"] = "Generic";
|
|
5333
|
+
})(DiscriminatorValues$1 || (DiscriminatorValues$1 = {}));
|
|
5334
|
+
|
|
5335
|
+
var DiscriminatorValues;
|
|
5336
|
+
(function (DiscriminatorValues) {
|
|
5337
|
+
DiscriminatorValues["Success"] = "Success";
|
|
5338
|
+
DiscriminatorValues["Error"] = "Error";
|
|
5339
|
+
})(DiscriminatorValues || (DiscriminatorValues = {}));
|
|
5328
5340
|
function validate$2(obj, path = 'CdpMlPredictionBaseRepresentation') {
|
|
5329
5341
|
const v_error = (() => {
|
|
5330
5342
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5331
5343
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5332
5344
|
}
|
|
5333
|
-
|
|
5334
|
-
|
|
5335
|
-
|
|
5336
|
-
|
|
5337
|
-
const obj_status_union0_error = (() => {
|
|
5338
|
-
if (typeof obj_status !== 'string') {
|
|
5339
|
-
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
5340
|
-
}
|
|
5341
|
-
})();
|
|
5342
|
-
if (obj_status_union0_error != null) {
|
|
5343
|
-
obj_status_union0 = obj_status_union0_error.message;
|
|
5344
|
-
}
|
|
5345
|
-
let obj_status_union1 = null;
|
|
5346
|
-
const obj_status_union1_error = (() => {
|
|
5347
|
-
if (obj_status !== null) {
|
|
5348
|
-
return new TypeError('Expected "null" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
5349
|
-
}
|
|
5350
|
-
})();
|
|
5351
|
-
if (obj_status_union1_error != null) {
|
|
5352
|
-
obj_status_union1 = obj_status_union1_error.message;
|
|
5353
|
-
}
|
|
5354
|
-
if (obj_status_union0 && obj_status_union1) {
|
|
5355
|
-
let message = 'Object doesn\'t match union (at "' + path_status + '")';
|
|
5356
|
-
message += '\n' + obj_status_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
5357
|
-
message += '\n' + obj_status_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
5358
|
-
return new TypeError(message);
|
|
5359
|
-
}
|
|
5345
|
+
const obj_status = obj.status;
|
|
5346
|
+
const path_status = path + '.status';
|
|
5347
|
+
if (typeof obj_status !== 'string') {
|
|
5348
|
+
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
5360
5349
|
}
|
|
5361
5350
|
})();
|
|
5362
5351
|
return v_error === undefined ? null : v_error;
|
|
@@ -5428,7 +5417,7 @@ function validate$1(obj, path = 'CdpMlPredictSettingsInputRepresentation') {
|
|
|
5428
5417
|
}
|
|
5429
5418
|
|
|
5430
5419
|
const TTL = 1000;
|
|
5431
|
-
const VERSION = "
|
|
5420
|
+
const VERSION = "db91153fa53c91ab59ff4d2ae3000258";
|
|
5432
5421
|
function validate(obj, path = 'CdpMlPredictResultRepresentation') {
|
|
5433
5422
|
const v_error = (() => {
|
|
5434
5423
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -5481,15 +5470,13 @@ function validate(obj, path = 'CdpMlPredictResultRepresentation') {
|
|
|
5481
5470
|
}
|
|
5482
5471
|
}
|
|
5483
5472
|
}
|
|
5484
|
-
|
|
5485
|
-
|
|
5486
|
-
|
|
5487
|
-
|
|
5488
|
-
|
|
5489
|
-
|
|
5490
|
-
|
|
5491
|
-
return new TypeError(message);
|
|
5492
|
-
}
|
|
5473
|
+
const obj_settings = obj.settings;
|
|
5474
|
+
const path_settings = path + '.settings';
|
|
5475
|
+
const referencepath_settingsValidationError = validate$1(obj_settings, path_settings);
|
|
5476
|
+
if (referencepath_settingsValidationError !== null) {
|
|
5477
|
+
let message = 'Object doesn\'t match CdpMlPredictSettingsInputRepresentation (at "' + path_settings + '")\n';
|
|
5478
|
+
message += referencepath_settingsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
5479
|
+
return new TypeError(message);
|
|
5493
5480
|
}
|
|
5494
5481
|
})();
|
|
5495
5482
|
return v_error === undefined ? null : v_error;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { CdpMlPredictionSuccessBaseRepresentation as CdpMlPredictionSuccessBaseRepresentation_CdpMlPredictionSuccessBaseRepresentation } from './CdpMlPredictionSuccessBaseRepresentation';
|
|
2
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
3
|
+
export declare const VERSION = "d7942f3dfad1625fd2e3fb2d7ba81498";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export declare function normalize(input: CdpMlBinaryClassificationPredictionResultRepresentation, existing: CdpMlBinaryClassificationPredictionResultRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CdpMlBinaryClassificationPredictionResultRepresentationNormalized;
|
|
7
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
|
+
export declare function equals(existing: CdpMlBinaryClassificationPredictionResultRepresentationNormalized, incoming: CdpMlBinaryClassificationPredictionResultRepresentationNormalized): boolean;
|
|
9
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: CdpMlBinaryClassificationPredictionResultRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
|
+
/**
|
|
12
|
+
* Representation for a successful binary classification prediction result
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface CdpMlBinaryClassificationPredictionResultRepresentationNormalized extends CdpMlPredictionSuccessBaseRepresentation_CdpMlPredictionSuccessBaseRepresentation {
|
|
18
|
+
/** Predicted value */
|
|
19
|
+
predictedValue: number;
|
|
20
|
+
/** Threshold used */
|
|
21
|
+
threshold: number;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Representation for a successful binary classification prediction result
|
|
25
|
+
*
|
|
26
|
+
* Keys:
|
|
27
|
+
* (none)
|
|
28
|
+
*/
|
|
29
|
+
export interface CdpMlBinaryClassificationPredictionResultRepresentation extends CdpMlPredictionSuccessBaseRepresentation_CdpMlPredictionSuccessBaseRepresentation {
|
|
30
|
+
predictedValue: number;
|
|
31
|
+
threshold: number;
|
|
32
|
+
type: 'BinaryClassification';
|
|
33
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
+
export declare const VERSION = "52b36f94dc6725557282372c9912e7cd";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: CdpMlFieldValueRepresentation, existing: CdpMlFieldValueRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CdpMlFieldValueRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: CdpMlFieldValueRepresentationNormalized, incoming: CdpMlFieldValueRepresentationNormalized): boolean;
|
|
8
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
9
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: CdpMlFieldValueRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Cdp Ml Field Value
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface CdpMlFieldValueRepresentationNormalized {
|
|
17
|
+
/** Count of the value */
|
|
18
|
+
count: number;
|
|
19
|
+
/** Field value */
|
|
20
|
+
value: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Cdp Ml Field Value
|
|
24
|
+
*
|
|
25
|
+
* Keys:
|
|
26
|
+
* (none)
|
|
27
|
+
*/
|
|
28
|
+
export interface CdpMlFieldValueRepresentation {
|
|
29
|
+
count: number;
|
|
30
|
+
value: string;
|
|
31
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
+
export declare const VERSION = "36c5eb04623915c81d60b731bde083fe";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: CdpMlGenericPredictionOutputValueRepresentation, existing: CdpMlGenericPredictionOutputValueRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CdpMlGenericPredictionOutputValueRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: CdpMlGenericPredictionOutputValueRepresentationNormalized, incoming: CdpMlGenericPredictionOutputValueRepresentationNormalized): boolean;
|
|
8
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
9
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: CdpMlGenericPredictionOutputValueRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Representation for a successful generic prediction result
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface CdpMlGenericPredictionOutputValueRepresentationNormalized {
|
|
17
|
+
/** Name */
|
|
18
|
+
name: string;
|
|
19
|
+
/** Output Data type */
|
|
20
|
+
type: string;
|
|
21
|
+
/** Output Value */
|
|
22
|
+
value: {};
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Representation for a successful generic prediction result
|
|
26
|
+
*
|
|
27
|
+
* Keys:
|
|
28
|
+
* (none)
|
|
29
|
+
*/
|
|
30
|
+
export interface CdpMlGenericPredictionOutputValueRepresentation {
|
|
31
|
+
name: string;
|
|
32
|
+
type: string;
|
|
33
|
+
value: {};
|
|
34
|
+
}
|
package/dist/es/es2018/types/src/generated/types/CdpMlGenericPredictionResultRepresentation.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { CdpMlPredictionSuccessBaseRepresentation as CdpMlPredictionSuccessBaseRepresentation_CdpMlPredictionSuccessBaseRepresentation } from './CdpMlPredictionSuccessBaseRepresentation';
|
|
2
|
+
import { CdpMlGenericPredictionOutputValueRepresentation as CdpMlGenericPredictionOutputValueRepresentation_CdpMlGenericPredictionOutputValueRepresentation } from './CdpMlGenericPredictionOutputValueRepresentation';
|
|
3
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
4
|
+
export declare const VERSION = "5e7012033c0bfc12c74b010090ffd1a4";
|
|
5
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
|
+
export declare const RepresentationType: string;
|
|
7
|
+
export declare function normalize(input: CdpMlGenericPredictionResultRepresentation, existing: CdpMlGenericPredictionResultRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CdpMlGenericPredictionResultRepresentationNormalized;
|
|
8
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
9
|
+
export declare function equals(existing: CdpMlGenericPredictionResultRepresentationNormalized, incoming: CdpMlGenericPredictionResultRepresentationNormalized): boolean;
|
|
10
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
11
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: CdpMlGenericPredictionResultRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
12
|
+
/**
|
|
13
|
+
* Representation for a successful generic prediction result
|
|
14
|
+
*
|
|
15
|
+
* Keys:
|
|
16
|
+
* (none)
|
|
17
|
+
*/
|
|
18
|
+
export interface CdpMlGenericPredictionResultRepresentationNormalized extends CdpMlPredictionSuccessBaseRepresentation_CdpMlPredictionSuccessBaseRepresentation {
|
|
19
|
+
/** Name */
|
|
20
|
+
outputs: Array<CdpMlGenericPredictionOutputValueRepresentation_CdpMlGenericPredictionOutputValueRepresentation>;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Representation for a successful generic prediction result
|
|
24
|
+
*
|
|
25
|
+
* Keys:
|
|
26
|
+
* (none)
|
|
27
|
+
*/
|
|
28
|
+
export interface CdpMlGenericPredictionResultRepresentation extends CdpMlPredictionSuccessBaseRepresentation_CdpMlPredictionSuccessBaseRepresentation {
|
|
29
|
+
outputs: Array<CdpMlGenericPredictionOutputValueRepresentation_CdpMlGenericPredictionOutputValueRepresentation>;
|
|
30
|
+
type: 'Generic';
|
|
31
|
+
}
|
|
@@ -3,8 +3,10 @@ import { CdpAssetReferenceRepresentation as CdpAssetReferenceRepresentation_CdpA
|
|
|
3
3
|
import { CdpMlPredictionBaseRepresentation as CdpMlPredictionBaseRepresentation_CdpMlPredictionBaseRepresentation } from './CdpMlPredictionBaseRepresentation';
|
|
4
4
|
import { CdpMlPredictSettingsInputRepresentation as CdpMlPredictSettingsInputRepresentation_CdpMlPredictSettingsInputRepresentation } from './CdpMlPredictSettingsInputRepresentation';
|
|
5
5
|
import { KeyMetadata as $64$luvio_engine_KeyMetadata, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Luvio as $64$luvio_engine_Luvio, IngestPath as $64$luvio_engine_IngestPath, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
6
|
+
import { CdpMlPredictionSuccessBaseRepresentation as CdpMlPredictionSuccessBaseRepresentation_CdpMlPredictionSuccessBaseRepresentation } from './CdpMlPredictionSuccessBaseRepresentation';
|
|
7
|
+
import { CdpMlPredictionErrorRepresentation as CdpMlPredictionErrorRepresentation_CdpMlPredictionErrorRepresentation } from './CdpMlPredictionErrorRepresentation';
|
|
6
8
|
export declare const TTL = 1000;
|
|
7
|
-
export declare const VERSION = "
|
|
9
|
+
export declare const VERSION = "db91153fa53c91ab59ff4d2ae3000258";
|
|
8
10
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
9
11
|
export declare const RepresentationType: string;
|
|
10
12
|
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
@@ -35,9 +37,9 @@ export interface CdpMlPredictResultRepresentationNormalized {
|
|
|
35
37
|
/** Prediction Type */
|
|
36
38
|
predictionType: string;
|
|
37
39
|
/** A list of prediction results */
|
|
38
|
-
predictions?: Array
|
|
40
|
+
predictions?: Array<CdpMlPredictionBaseRepresentation_CdpMlPredictionBaseRepresentation>;
|
|
39
41
|
/** Settings used for the prediction */
|
|
40
|
-
settings
|
|
42
|
+
settings: $64$luvio_engine_StoreLink;
|
|
41
43
|
}
|
|
42
44
|
/**
|
|
43
45
|
* Cdp Ml Prediction result representation
|
|
@@ -49,6 +51,6 @@ export interface CdpMlPredictResultRepresentation {
|
|
|
49
51
|
aggregatePredictions?: Array<CdpMlAggregatePredictionRepresentation_CdpMlAggregatePredictionRepresentation>;
|
|
50
52
|
model: CdpAssetReferenceRepresentation_CdpAssetReferenceRepresentation;
|
|
51
53
|
predictionType: string;
|
|
52
|
-
predictions?: Array<
|
|
53
|
-
settings
|
|
54
|
+
predictions?: Array<CdpMlPredictionSuccessBaseRepresentation_CdpMlPredictionSuccessBaseRepresentation | CdpMlPredictionErrorRepresentation_CdpMlPredictionErrorRepresentation>;
|
|
55
|
+
settings: CdpMlPredictSettingsInputRepresentation_CdpMlPredictSettingsInputRepresentation;
|
|
54
56
|
}
|
|
@@ -1,12 +1,17 @@
|
|
|
1
|
-
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store,
|
|
2
|
-
export declare
|
|
3
|
-
|
|
1
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentUnionSelection as $64$luvio_engine_FragmentUnionSelection, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
+
export declare enum DiscriminatorValues {
|
|
3
|
+
Success = "Success",
|
|
4
|
+
Error = "Error"
|
|
5
|
+
}
|
|
6
|
+
export declare const VERSION = "150f60aeac8cde473d8e16cd52f1f0b7";
|
|
4
7
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
8
|
export declare const RepresentationType: string;
|
|
6
9
|
export declare function normalize(input: CdpMlPredictionBaseRepresentation, existing: CdpMlPredictionBaseRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CdpMlPredictionBaseRepresentationNormalized;
|
|
7
|
-
export declare const
|
|
10
|
+
export declare const selectChildren: () => $64$luvio_engine_FragmentUnionSelection;
|
|
11
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
12
|
export declare function equals(existing: CdpMlPredictionBaseRepresentationNormalized, incoming: CdpMlPredictionBaseRepresentationNormalized): boolean;
|
|
9
13
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
14
|
+
export declare const discriminatorIngest: $64$luvio_engine_ResourceIngest;
|
|
10
15
|
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: CdpMlPredictionBaseRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
16
|
/**
|
|
12
17
|
* Base representation for a prediction result
|
|
@@ -16,7 +21,7 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
16
21
|
*/
|
|
17
22
|
export interface CdpMlPredictionBaseRepresentationNormalized {
|
|
18
23
|
/** prediction status */
|
|
19
|
-
status
|
|
24
|
+
status: string;
|
|
20
25
|
}
|
|
21
26
|
/**
|
|
22
27
|
* Base representation for a prediction result
|
|
@@ -25,5 +30,5 @@ export interface CdpMlPredictionBaseRepresentationNormalized {
|
|
|
25
30
|
* (none)
|
|
26
31
|
*/
|
|
27
32
|
export interface CdpMlPredictionBaseRepresentation {
|
|
28
|
-
status
|
|
33
|
+
status: string;
|
|
29
34
|
}
|
package/dist/es/es2018/types/src/generated/types/CdpMlPredictionContributionBaseRepresentation.d.ts
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { CdpMlPredictionContributionFieldRepresentation as CdpMlPredictionContributionFieldRepresentation_CdpMlPredictionContributionFieldRepresentation } from './CdpMlPredictionContributionFieldRepresentation';
|
|
2
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
3
|
+
export declare const VERSION = "ae3c9ebdbac9d1ad93d3dfd0d3f73b83";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export declare function normalize(input: CdpMlPredictionContributionBaseRepresentation, existing: CdpMlPredictionContributionBaseRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CdpMlPredictionContributionBaseRepresentationNormalized;
|
|
7
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
|
+
export declare function equals(existing: CdpMlPredictionContributionBaseRepresentationNormalized, incoming: CdpMlPredictionContributionBaseRepresentationNormalized): boolean;
|
|
9
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: CdpMlPredictionContributionBaseRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
|
+
/**
|
|
12
|
+
* Base representation for a Prediction Contribution
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface CdpMlPredictionContributionBaseRepresentationNormalized {
|
|
18
|
+
/** List of field and values that have the same contribution value */
|
|
19
|
+
fields: Array<CdpMlPredictionContributionFieldRepresentation_CdpMlPredictionContributionFieldRepresentation>;
|
|
20
|
+
/** Contribution value */
|
|
21
|
+
value: number;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Base representation for a Prediction Contribution
|
|
25
|
+
*
|
|
26
|
+
* Keys:
|
|
27
|
+
* (none)
|
|
28
|
+
*/
|
|
29
|
+
export interface CdpMlPredictionContributionBaseRepresentation {
|
|
30
|
+
fields: Array<CdpMlPredictionContributionFieldRepresentation_CdpMlPredictionContributionFieldRepresentation>;
|
|
31
|
+
value: number;
|
|
32
|
+
}
|
package/dist/es/es2018/types/src/generated/types/CdpMlPredictionContributionFieldRepresentation.d.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { CdpMlPredictionFieldCustomTextRepresentation as CdpMlPredictionFieldCustomTextRepresentation_CdpMlPredictionFieldCustomTextRepresentation } from './CdpMlPredictionFieldCustomTextRepresentation';
|
|
2
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
3
|
+
export declare const VERSION = "06fa1155071dedd86272aef35857bf3a";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export declare function normalize(input: CdpMlPredictionContributionFieldRepresentation, existing: CdpMlPredictionContributionFieldRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CdpMlPredictionContributionFieldRepresentationNormalized;
|
|
7
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
|
+
export declare function equals(existing: CdpMlPredictionContributionFieldRepresentationNormalized, incoming: CdpMlPredictionContributionFieldRepresentationNormalized): boolean;
|
|
9
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: CdpMlPredictionContributionFieldRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
|
+
/**
|
|
12
|
+
* Cdp Ml Prediction Contribution Field
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface CdpMlPredictionContributionFieldRepresentationNormalized {
|
|
18
|
+
customText: CdpMlPredictionFieldCustomTextRepresentation_CdpMlPredictionFieldCustomTextRepresentation;
|
|
19
|
+
/** Input value used for this field */
|
|
20
|
+
inputValue: string;
|
|
21
|
+
/** Model output value for the field (i.e. recommended value to improve prediction) */
|
|
22
|
+
prescribedValue: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Cdp Ml Prediction Contribution Field
|
|
26
|
+
*
|
|
27
|
+
* Keys:
|
|
28
|
+
* (none)
|
|
29
|
+
*/
|
|
30
|
+
export interface CdpMlPredictionContributionFieldRepresentation {
|
|
31
|
+
customText: CdpMlPredictionFieldCustomTextRepresentation_CdpMlPredictionFieldCustomTextRepresentation;
|
|
32
|
+
inputValue: string;
|
|
33
|
+
prescribedValue: string;
|
|
34
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { CdpMlPredictionBaseRepresentation as CdpMlPredictionBaseRepresentation_CdpMlPredictionBaseRepresentation } from './CdpMlPredictionBaseRepresentation';
|
|
2
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
3
|
+
export declare const VERSION = "ed179e110e66d8254956a4b1c6fb0e56";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export declare function normalize(input: CdpMlPredictionErrorRepresentation, existing: CdpMlPredictionErrorRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CdpMlPredictionErrorRepresentationNormalized;
|
|
7
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
|
+
export declare function equals(existing: CdpMlPredictionErrorRepresentationNormalized, incoming: CdpMlPredictionErrorRepresentationNormalized): boolean;
|
|
9
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: CdpMlPredictionErrorRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
|
+
/**
|
|
12
|
+
* Failed prediction
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface CdpMlPredictionErrorRepresentationNormalized extends CdpMlPredictionBaseRepresentation_CdpMlPredictionBaseRepresentation {
|
|
18
|
+
/** Error Code for the Error Message */
|
|
19
|
+
errorCode: string;
|
|
20
|
+
/** Error Message for Predict Error */
|
|
21
|
+
message: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Failed prediction
|
|
25
|
+
*
|
|
26
|
+
* Keys:
|
|
27
|
+
* (none)
|
|
28
|
+
*/
|
|
29
|
+
export interface CdpMlPredictionErrorRepresentation extends CdpMlPredictionBaseRepresentation_CdpMlPredictionBaseRepresentation {
|
|
30
|
+
errorCode: string;
|
|
31
|
+
message: string;
|
|
32
|
+
status: 'Error';
|
|
33
|
+
}
|
package/dist/es/es2018/types/src/generated/types/CdpMlPredictionFieldCustomTextRepresentation.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
+
export declare const VERSION = "7f612f2ff2c7896ac46cf1e8d7571b87";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: CdpMlPredictionFieldCustomTextRepresentation, existing: CdpMlPredictionFieldCustomTextRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CdpMlPredictionFieldCustomTextRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: CdpMlPredictionFieldCustomTextRepresentationNormalized, incoming: CdpMlPredictionFieldCustomTextRepresentationNormalized): boolean;
|
|
8
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
9
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: CdpMlPredictionFieldCustomTextRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Cdp Ml Prediction Field Custom Text
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface CdpMlPredictionFieldCustomTextRepresentationNormalized {
|
|
17
|
+
isHidden: boolean;
|
|
18
|
+
/** Provides placeholder to resolved value defined in the template text. Null if there are no placeholders. */
|
|
19
|
+
mergeFieldValues: unknown;
|
|
20
|
+
/** Template text if custom override is defined for the column. */
|
|
21
|
+
templateText: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Cdp Ml Prediction Field Custom Text
|
|
25
|
+
*
|
|
26
|
+
* Keys:
|
|
27
|
+
* (none)
|
|
28
|
+
*/
|
|
29
|
+
export interface CdpMlPredictionFieldCustomTextRepresentation {
|
|
30
|
+
isHidden: boolean;
|
|
31
|
+
mergeFieldValues: unknown;
|
|
32
|
+
templateText: string;
|
|
33
|
+
}
|
package/dist/es/es2018/types/src/generated/types/CdpMlPredictionSuccessBaseRepresentation.d.ts
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { CdpMlPredictionBaseRepresentation as CdpMlPredictionBaseRepresentation_CdpMlPredictionBaseRepresentation } from './CdpMlPredictionBaseRepresentation';
|
|
2
|
+
import { CdpMlPredictionContributionBaseRepresentation as CdpMlPredictionContributionBaseRepresentation_CdpMlPredictionContributionBaseRepresentation } from './CdpMlPredictionContributionBaseRepresentation';
|
|
3
|
+
import { CdpAssetReferenceRepresentation as CdpAssetReferenceRepresentation_CdpAssetReferenceRepresentation } from './CdpAssetReferenceRepresentation';
|
|
4
|
+
import { CdpMlPredictionWarningsRepresentation as CdpMlPredictionWarningsRepresentation_CdpMlPredictionWarningsRepresentation } from './CdpMlPredictionWarningsRepresentation';
|
|
5
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentUnionSelection as $64$luvio_engine_FragmentUnionSelection, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
6
|
+
export declare enum DiscriminatorValues {
|
|
7
|
+
Regression = "Regression",
|
|
8
|
+
BinaryClassification = "BinaryClassification",
|
|
9
|
+
Generic = "Generic"
|
|
10
|
+
}
|
|
11
|
+
export declare const VERSION = "4bf69752af5d0c61c2fdac87e45db8a2";
|
|
12
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
13
|
+
export declare const RepresentationType: string;
|
|
14
|
+
export declare function normalize(input: CdpMlPredictionSuccessBaseRepresentation, existing: CdpMlPredictionSuccessBaseRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CdpMlPredictionSuccessBaseRepresentationNormalized;
|
|
15
|
+
export declare const selectChildren: () => $64$luvio_engine_FragmentUnionSelection;
|
|
16
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
17
|
+
export declare function equals(existing: CdpMlPredictionSuccessBaseRepresentationNormalized, incoming: CdpMlPredictionSuccessBaseRepresentationNormalized): boolean;
|
|
18
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
19
|
+
export declare const discriminatorIngest: $64$luvio_engine_ResourceIngest;
|
|
20
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: CdpMlPredictionSuccessBaseRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
21
|
+
/**
|
|
22
|
+
* Base representation for a successful prediction result
|
|
23
|
+
*
|
|
24
|
+
* Keys:
|
|
25
|
+
* (none)
|
|
26
|
+
*/
|
|
27
|
+
export interface CdpMlPredictionSuccessBaseRepresentationNormalized extends CdpMlPredictionBaseRepresentation_CdpMlPredictionBaseRepresentation {
|
|
28
|
+
/** A list of top factors associated with prediction */
|
|
29
|
+
factors: Array<CdpMlPredictionContributionBaseRepresentation_CdpMlPredictionContributionBaseRepresentation>;
|
|
30
|
+
/** Model partition that's used for this prediction */
|
|
31
|
+
partition: CdpAssetReferenceRepresentation_CdpAssetReferenceRepresentation;
|
|
32
|
+
/** A list of recommendations associated with this prediction */
|
|
33
|
+
prescriptions: Array<CdpMlPredictionContributionBaseRepresentation_CdpMlPredictionContributionBaseRepresentation>;
|
|
34
|
+
/** Prediction type */
|
|
35
|
+
type: string;
|
|
36
|
+
warnings: CdpMlPredictionWarningsRepresentation_CdpMlPredictionWarningsRepresentation;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Base representation for a successful prediction result
|
|
40
|
+
*
|
|
41
|
+
* Keys:
|
|
42
|
+
* (none)
|
|
43
|
+
*/
|
|
44
|
+
export interface CdpMlPredictionSuccessBaseRepresentation extends CdpMlPredictionBaseRepresentation_CdpMlPredictionBaseRepresentation {
|
|
45
|
+
factors: Array<CdpMlPredictionContributionBaseRepresentation_CdpMlPredictionContributionBaseRepresentation>;
|
|
46
|
+
partition: CdpAssetReferenceRepresentation_CdpAssetReferenceRepresentation;
|
|
47
|
+
prescriptions: Array<CdpMlPredictionContributionBaseRepresentation_CdpMlPredictionContributionBaseRepresentation>;
|
|
48
|
+
type: string;
|
|
49
|
+
warnings: CdpMlPredictionWarningsRepresentation_CdpMlPredictionWarningsRepresentation;
|
|
50
|
+
status: 'Success';
|
|
51
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { CdpMlFieldValueRepresentation as CdpMlFieldValueRepresentation_CdpMlFieldValueRepresentation } from './CdpMlFieldValueRepresentation';
|
|
2
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
3
|
+
export declare const VERSION = "510be89ce5315c3840efaaaad36fabb8";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export declare function normalize(input: CdpMlPredictionWarningsRepresentation, existing: CdpMlPredictionWarningsRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CdpMlPredictionWarningsRepresentationNormalized;
|
|
7
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
|
+
export declare function equals(existing: CdpMlPredictionWarningsRepresentationNormalized, incoming: CdpMlPredictionWarningsRepresentationNormalized): boolean;
|
|
9
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: CdpMlPredictionWarningsRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
|
+
/**
|
|
12
|
+
* Representation for prediction warnings
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface CdpMlPredictionWarningsRepresentationNormalized {
|
|
18
|
+
/** A list of missing field names */
|
|
19
|
+
missingFielsNames: Array<string>;
|
|
20
|
+
/** A list of fields that contain values that are not seen in the model */
|
|
21
|
+
outOfBoundsFields: Array<CdpMlFieldValueRepresentation_CdpMlFieldValueRepresentation>;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Representation for prediction warnings
|
|
25
|
+
*
|
|
26
|
+
* Keys:
|
|
27
|
+
* (none)
|
|
28
|
+
*/
|
|
29
|
+
export interface CdpMlPredictionWarningsRepresentation {
|
|
30
|
+
missingFielsNames: Array<string>;
|
|
31
|
+
outOfBoundsFields: Array<CdpMlFieldValueRepresentation_CdpMlFieldValueRepresentation>;
|
|
32
|
+
}
|
package/dist/es/es2018/types/src/generated/types/CdpMlRegressionPredictionResultRepresentation.d.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { CdpMlPredictionSuccessBaseRepresentation as CdpMlPredictionSuccessBaseRepresentation_CdpMlPredictionSuccessBaseRepresentation } from './CdpMlPredictionSuccessBaseRepresentation';
|
|
2
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
3
|
+
export declare const VERSION = "167c8a12564b59d3c74be73a5be6145d";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export declare function normalize(input: CdpMlRegressionPredictionResultRepresentation, existing: CdpMlRegressionPredictionResultRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CdpMlRegressionPredictionResultRepresentationNormalized;
|
|
7
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
|
+
export declare function equals(existing: CdpMlRegressionPredictionResultRepresentationNormalized, incoming: CdpMlRegressionPredictionResultRepresentationNormalized): boolean;
|
|
9
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: CdpMlRegressionPredictionResultRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
|
+
/**
|
|
12
|
+
* Representation for a successful regression prediction result
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface CdpMlRegressionPredictionResultRepresentationNormalized extends CdpMlPredictionSuccessBaseRepresentation_CdpMlPredictionSuccessBaseRepresentation {
|
|
18
|
+
/** Representation for a successful regression prediction result */
|
|
19
|
+
predictedValue: number;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Representation for a successful regression prediction result
|
|
23
|
+
*
|
|
24
|
+
* Keys:
|
|
25
|
+
* (none)
|
|
26
|
+
*/
|
|
27
|
+
export interface CdpMlRegressionPredictionResultRepresentation extends CdpMlPredictionSuccessBaseRepresentation_CdpMlPredictionSuccessBaseRepresentation {
|
|
28
|
+
predictedValue: number;
|
|
29
|
+
type: 'Regression';
|
|
30
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-platform-cdp-machine-learning",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.312.0",
|
|
4
4
|
"description": "machine learning for data cloud",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/es/es2018/platform-cdp-machine-learning.js",
|
|
@@ -41,10 +41,10 @@
|
|
|
41
41
|
"test:unit:debug": "node --inspect-brk ../../node_modules/.bin/jest --runInBand"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@salesforce/lds-bindings": "^1.
|
|
44
|
+
"@salesforce/lds-bindings": "^1.312.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
47
|
+
"@salesforce/lds-compiler-plugins": "^1.312.0"
|
|
48
48
|
},
|
|
49
49
|
"nx": {
|
|
50
50
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -1383,38 +1383,27 @@ function validate$l(obj, path = 'CdpMlAggregatePredictionRepresentation') {
|
|
|
1383
1383
|
return v_error === undefined ? null : v_error;
|
|
1384
1384
|
}
|
|
1385
1385
|
|
|
1386
|
+
var DiscriminatorValues$1;
|
|
1387
|
+
(function (DiscriminatorValues) {
|
|
1388
|
+
DiscriminatorValues["Regression"] = "Regression";
|
|
1389
|
+
DiscriminatorValues["BinaryClassification"] = "BinaryClassification";
|
|
1390
|
+
DiscriminatorValues["Generic"] = "Generic";
|
|
1391
|
+
})(DiscriminatorValues$1 || (DiscriminatorValues$1 = {}));
|
|
1392
|
+
|
|
1393
|
+
var DiscriminatorValues;
|
|
1394
|
+
(function (DiscriminatorValues) {
|
|
1395
|
+
DiscriminatorValues["Success"] = "Success";
|
|
1396
|
+
DiscriminatorValues["Error"] = "Error";
|
|
1397
|
+
})(DiscriminatorValues || (DiscriminatorValues = {}));
|
|
1386
1398
|
function validate$k(obj, path = 'CdpMlPredictionBaseRepresentation') {
|
|
1387
1399
|
const v_error = (() => {
|
|
1388
1400
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1389
1401
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1390
1402
|
}
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
const obj_status_union0_error = (() => {
|
|
1396
|
-
if (typeof obj_status !== 'string') {
|
|
1397
|
-
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
1398
|
-
}
|
|
1399
|
-
})();
|
|
1400
|
-
if (obj_status_union0_error != null) {
|
|
1401
|
-
obj_status_union0 = obj_status_union0_error.message;
|
|
1402
|
-
}
|
|
1403
|
-
let obj_status_union1 = null;
|
|
1404
|
-
const obj_status_union1_error = (() => {
|
|
1405
|
-
if (obj_status !== null) {
|
|
1406
|
-
return new TypeError('Expected "null" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
1407
|
-
}
|
|
1408
|
-
})();
|
|
1409
|
-
if (obj_status_union1_error != null) {
|
|
1410
|
-
obj_status_union1 = obj_status_union1_error.message;
|
|
1411
|
-
}
|
|
1412
|
-
if (obj_status_union0 && obj_status_union1) {
|
|
1413
|
-
let message = 'Object doesn\'t match union (at "' + path_status + '")';
|
|
1414
|
-
message += '\n' + obj_status_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1415
|
-
message += '\n' + obj_status_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1416
|
-
return new TypeError(message);
|
|
1417
|
-
}
|
|
1403
|
+
const obj_status = obj.status;
|
|
1404
|
+
const path_status = path + '.status';
|
|
1405
|
+
if (typeof obj_status !== 'string') {
|
|
1406
|
+
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
1418
1407
|
}
|
|
1419
1408
|
})();
|
|
1420
1409
|
return v_error === undefined ? null : v_error;
|
|
@@ -1486,7 +1475,7 @@ function validate$j(obj, path = 'CdpMlPredictSettingsInputRepresentation') {
|
|
|
1486
1475
|
}
|
|
1487
1476
|
|
|
1488
1477
|
const TTL$7 = 1000;
|
|
1489
|
-
const VERSION$7 = "
|
|
1478
|
+
const VERSION$7 = "db91153fa53c91ab59ff4d2ae3000258";
|
|
1490
1479
|
function validate$i(obj, path = 'CdpMlPredictResultRepresentation') {
|
|
1491
1480
|
const v_error = (() => {
|
|
1492
1481
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1539,15 +1528,13 @@ function validate$i(obj, path = 'CdpMlPredictResultRepresentation') {
|
|
|
1539
1528
|
}
|
|
1540
1529
|
}
|
|
1541
1530
|
}
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
return new TypeError(message);
|
|
1550
|
-
}
|
|
1531
|
+
const obj_settings = obj.settings;
|
|
1532
|
+
const path_settings = path + '.settings';
|
|
1533
|
+
const referencepath_settingsValidationError = validate$j(obj_settings, path_settings);
|
|
1534
|
+
if (referencepath_settingsValidationError !== null) {
|
|
1535
|
+
let message = 'Object doesn\'t match CdpMlPredictSettingsInputRepresentation (at "' + path_settings + '")\n';
|
|
1536
|
+
message += referencepath_settingsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1537
|
+
return new TypeError(message);
|
|
1551
1538
|
}
|
|
1552
1539
|
})();
|
|
1553
1540
|
return v_error === undefined ? null : v_error;
|
|
@@ -5894,4 +5881,4 @@ withDefaultLuvio((luvio) => {
|
|
|
5894
5881
|
});
|
|
5895
5882
|
|
|
5896
5883
|
export { createCdpMlConfiguredModel, createCdpMlPredictResult, createMlConfiguredModel, getCdpMlConfiguredModel, getCdpMlConfiguredModelCollection, getCdpMlConfiguredModelCollection_imperative, getCdpMlConfiguredModel_imperative, getCdpMlModelArtifact, getCdpMlModelArtifactCollection, getCdpMlModelArtifactCollection_imperative, getCdpMlModelArtifact_imperative, getCdpMlWorkspace, getCdpMlWorkspaceCollection, getCdpMlWorkspaceCollection_imperative, getCdpMlWorkspaceNotifyChange, getCdpMlWorkspace_imperative, getMlConfiguredModel, getMlConfiguredModelCollection, getMlConfiguredModelCollection_imperative, getMlConfiguredModelNotifyChange, getMlConfiguredModel_imperative, updateCdpMlConfiguredModel, updateMlConfiguredModel };
|
|
5897
|
-
// version: 1.
|
|
5884
|
+
// version: 1.312.0-0d267bac6a
|
package/src/raml/api.raml
CHANGED
|
@@ -1214,14 +1214,172 @@ types:
|
|
|
1214
1214
|
type: integer
|
|
1215
1215
|
CdpMlPredictionBaseRepresentation:
|
|
1216
1216
|
description: Base representation for a prediction result
|
|
1217
|
+
discriminator: status
|
|
1217
1218
|
type: object
|
|
1218
1219
|
properties:
|
|
1219
|
-
status
|
|
1220
|
+
status:
|
|
1220
1221
|
description: prediction status
|
|
1221
|
-
type: string
|
|
1222
|
+
type: string
|
|
1222
1223
|
enum:
|
|
1223
1224
|
- Success
|
|
1224
1225
|
- Error
|
|
1226
|
+
CdpMlPredictionErrorRepresentation:
|
|
1227
|
+
description: Failed prediction
|
|
1228
|
+
type: CdpMlPredictionBaseRepresentation
|
|
1229
|
+
discriminatorValue: Error
|
|
1230
|
+
properties:
|
|
1231
|
+
errorCode:
|
|
1232
|
+
description: Error Code for the Error Message
|
|
1233
|
+
type: string
|
|
1234
|
+
enum:
|
|
1235
|
+
- TimedOut
|
|
1236
|
+
- NoMatch
|
|
1237
|
+
- Error
|
|
1238
|
+
message:
|
|
1239
|
+
description: Error Message for Predict Error
|
|
1240
|
+
type: string
|
|
1241
|
+
CdpMlPredictionSuccessBaseRepresentation:
|
|
1242
|
+
description: Base representation for a successful prediction result
|
|
1243
|
+
type: CdpMlPredictionBaseRepresentation
|
|
1244
|
+
discriminator: type
|
|
1245
|
+
discriminatorValue: Success
|
|
1246
|
+
properties:
|
|
1247
|
+
type:
|
|
1248
|
+
description: Prediction type
|
|
1249
|
+
type: string
|
|
1250
|
+
enum:
|
|
1251
|
+
- Regression
|
|
1252
|
+
- BinaryClassification
|
|
1253
|
+
- Generic
|
|
1254
|
+
partition:
|
|
1255
|
+
description: Model partition that's used for this prediction
|
|
1256
|
+
type: CdpAssetReferenceRepresentation
|
|
1257
|
+
warnings:
|
|
1258
|
+
description: Warnings that are generated by the prediction
|
|
1259
|
+
type: CdpMlPredictionWarningsRepresentation
|
|
1260
|
+
factors:
|
|
1261
|
+
description: A list of top factors associated with prediction
|
|
1262
|
+
type: array
|
|
1263
|
+
items:
|
|
1264
|
+
type: CdpMlPredictionContributionBaseRepresentation
|
|
1265
|
+
prescriptions:
|
|
1266
|
+
description: A list of recommendations associated with this prediction
|
|
1267
|
+
type: array
|
|
1268
|
+
items:
|
|
1269
|
+
type: CdpMlPredictionContributionBaseRepresentation
|
|
1270
|
+
CdpMlRegressionPredictionResultRepresentation:
|
|
1271
|
+
description: Representation for a successful regression prediction result
|
|
1272
|
+
type: CdpMlPredictionSuccessBaseRepresentation
|
|
1273
|
+
discriminatorValue: Regression
|
|
1274
|
+
properties:
|
|
1275
|
+
predictedValue:
|
|
1276
|
+
description: Representation for a successful regression prediction result
|
|
1277
|
+
format: double
|
|
1278
|
+
type: number
|
|
1279
|
+
CdpMlBinaryClassificationPredictionResultRepresentation:
|
|
1280
|
+
description: Representation for a successful binary classification prediction result
|
|
1281
|
+
type: CdpMlPredictionSuccessBaseRepresentation
|
|
1282
|
+
discriminatorValue: BinaryClassification
|
|
1283
|
+
properties:
|
|
1284
|
+
predictedValue:
|
|
1285
|
+
description: Predicted value
|
|
1286
|
+
format: double
|
|
1287
|
+
type: number
|
|
1288
|
+
threshold:
|
|
1289
|
+
description: Threshold used
|
|
1290
|
+
format: double
|
|
1291
|
+
type: number
|
|
1292
|
+
CdpMlGenericPredictionResultRepresentation:
|
|
1293
|
+
description: Representation for a successful generic prediction result
|
|
1294
|
+
type: CdpMlPredictionSuccessBaseRepresentation
|
|
1295
|
+
discriminatorValue: Generic
|
|
1296
|
+
properties:
|
|
1297
|
+
outputs:
|
|
1298
|
+
description: Name
|
|
1299
|
+
type: array
|
|
1300
|
+
items:
|
|
1301
|
+
type: CdpMlGenericPredictionOutputValueRepresentation
|
|
1302
|
+
CdpMlGenericPredictionOutputValueRepresentation:
|
|
1303
|
+
description: Representation for a successful generic prediction result
|
|
1304
|
+
type: object
|
|
1305
|
+
properties:
|
|
1306
|
+
name:
|
|
1307
|
+
description: Name
|
|
1308
|
+
type: string
|
|
1309
|
+
value:
|
|
1310
|
+
description: Output Value
|
|
1311
|
+
type: object
|
|
1312
|
+
type:
|
|
1313
|
+
description: Output Data type
|
|
1314
|
+
type: string
|
|
1315
|
+
enum:
|
|
1316
|
+
- Text
|
|
1317
|
+
- Number
|
|
1318
|
+
- Date
|
|
1319
|
+
- Boolean
|
|
1320
|
+
CdpMlPredictionContributionBaseRepresentation:
|
|
1321
|
+
description: Base representation for a Prediction Contribution
|
|
1322
|
+
type: object
|
|
1323
|
+
properties:
|
|
1324
|
+
value:
|
|
1325
|
+
description: Contribution value
|
|
1326
|
+
format: double
|
|
1327
|
+
type: number
|
|
1328
|
+
fields:
|
|
1329
|
+
description: List of field and values that have the same contribution value
|
|
1330
|
+
type: array
|
|
1331
|
+
items:
|
|
1332
|
+
type: CdpMlPredictionContributionFieldRepresentation
|
|
1333
|
+
CdpMlPredictionContributionFieldRepresentation:
|
|
1334
|
+
description: Cdp Ml Prediction Contribution Field
|
|
1335
|
+
type: object
|
|
1336
|
+
properties:
|
|
1337
|
+
prescribedValue:
|
|
1338
|
+
description: Model output value for the field (i.e. recommended value to improve prediction)
|
|
1339
|
+
type: string
|
|
1340
|
+
inputValue:
|
|
1341
|
+
description: Input value used for this field
|
|
1342
|
+
type: string
|
|
1343
|
+
customText:
|
|
1344
|
+
description:
|
|
1345
|
+
type: CdpMlPredictionFieldCustomTextRepresentation
|
|
1346
|
+
CdpMlPredictionFieldCustomTextRepresentation:
|
|
1347
|
+
description: Cdp Ml Prediction Field Custom Text
|
|
1348
|
+
type: object
|
|
1349
|
+
properties:
|
|
1350
|
+
templateText:
|
|
1351
|
+
description: Template text if custom override is defined for the column.
|
|
1352
|
+
type: string
|
|
1353
|
+
mergeFieldValues:
|
|
1354
|
+
description: Provides placeholder to resolved value defined in the template text. Null if there are no placeholders.
|
|
1355
|
+
type: any
|
|
1356
|
+
isHidden:
|
|
1357
|
+
description:
|
|
1358
|
+
type: boolean
|
|
1359
|
+
CdpMlPredictionWarningsRepresentation:
|
|
1360
|
+
description: Representation for prediction warnings
|
|
1361
|
+
type: object
|
|
1362
|
+
properties:
|
|
1363
|
+
outOfBoundsFields:
|
|
1364
|
+
description: A list of fields that contain values that are not seen in the model
|
|
1365
|
+
type: array
|
|
1366
|
+
items:
|
|
1367
|
+
type: CdpMlFieldValueRepresentation
|
|
1368
|
+
missingFielsNames:
|
|
1369
|
+
description: A list of missing field names
|
|
1370
|
+
type: array
|
|
1371
|
+
items:
|
|
1372
|
+
type: string
|
|
1373
|
+
CdpMlFieldValueRepresentation:
|
|
1374
|
+
description: Cdp Ml Field Value
|
|
1375
|
+
type: object
|
|
1376
|
+
properties:
|
|
1377
|
+
value:
|
|
1378
|
+
description: Field value
|
|
1379
|
+
type: string
|
|
1380
|
+
count:
|
|
1381
|
+
description: Count of the value
|
|
1382
|
+
type: integer
|
|
1225
1383
|
CdpMlAggregatePredictionRepresentation:
|
|
1226
1384
|
description: Cdp Ml Prediction result representation
|
|
1227
1385
|
type: object
|
|
@@ -1296,7 +1454,7 @@ types:
|
|
|
1296
1454
|
type: array
|
|
1297
1455
|
items:
|
|
1298
1456
|
type: CdpMlAggregatePredictionRepresentation
|
|
1299
|
-
settings
|
|
1457
|
+
settings:
|
|
1300
1458
|
description: Settings used for the prediction
|
|
1301
1459
|
type: CdpMlPredictSettingsInputRepresentation
|
|
1302
1460
|
MlConfiguredModelInputRepresentation:
|
package/src/raml/luvio.raml
CHANGED
|
@@ -43,9 +43,6 @@ types:
|
|
|
43
43
|
CdpMlAggregatePredictConditionRepresentation:
|
|
44
44
|
(luvio.ttl): 1000
|
|
45
45
|
(luvio.opaque): true
|
|
46
|
-
CdpMlPredictionBaseRepresentation:
|
|
47
|
-
(luvio.ttl): 1000
|
|
48
|
-
(luvio.opaque): true
|
|
49
46
|
CdpMlAggregatePredictionRepresentation:
|
|
50
47
|
(luvio.ttl): 1000
|
|
51
48
|
(luvio.opaque): true
|