aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/app/_data/Experiment.ts
diff options
context:
space:
mode:
authorSonja Galovic <galovicsonja@gmail.com>2022-05-05 00:03:26 +0200
committerSonja Galovic <galovicsonja@gmail.com>2022-05-05 00:03:26 +0200
commit2fcd4358c32ea8d62343f137651ef80b15e3d433 (patch)
treed8c2a51372b665ff85077318f0531f5c2ed5dd5a /frontend/src/app/_data/Experiment.ts
parent75f0fca5f9e7e74979f63d73741512ea2e58e9e6 (diff)
ColumnTypes pomeren iz Dataset klase u Experiment klasu.
Diffstat (limited to 'frontend/src/app/_data/Experiment.ts')
-rw-r--r--frontend/src/app/_data/Experiment.ts13
1 files changed, 8 insertions, 5 deletions
diff --git a/frontend/src/app/_data/Experiment.ts b/frontend/src/app/_data/Experiment.ts
index 05336495..828431cc 100644
--- a/frontend/src/app/_data/Experiment.ts
+++ b/frontend/src/app/_data/Experiment.ts
@@ -15,9 +15,7 @@ export default class Experiment {
public dateCreated: Date = new Date(),
public lastUpdated: Date = new Date(),
public modelIds: string[] = [],
-
-
-
+ public columnTypes: ColumnType[] = [],
public encodings: ColumnEncoding[] = []//[{columnName: "", columnEncoding: Encoding.Label}]
) { }
@@ -47,11 +45,11 @@ export class NullValReplacer {
export enum Encoding {
Label = 'label',
OneHot = 'onehot',
- Ordinal = 'ordinal',
+ /*Ordinal = 'ordinal',
Hashing = 'hashing',
Binary = 'binary',
BaseN = 'baseN'
- /*
+
BackwardDifference = 'backward difference',
CatBoost = 'cat boost',
Count = 'count',
@@ -73,4 +71,9 @@ export class ColumnEncoding {
public columnName: string,
public encoding: Encoding
) { }
+}
+
+export enum ColumnType {
+ categorical = "categorical",
+ numerical = "numerical"
} \ No newline at end of file