-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
asuramaru
committed
Nov 21, 2023
1 parent
c0895b4
commit 1ff5da6
Showing
15 changed files
with
119 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
import {api} from "./config"; | ||
|
||
export const getAllModelsFn = async () => { | ||
const data = await api.get<string, number, boolean>('get/models').then((res) => {}).catch((res) => {}) | ||
const data = await api.get<string, number, boolean>('get/models').then((res) => { | ||
}).catch((res) => { | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import {ModelNameType} from "./GeneralTypes"; | ||
import {AlgNameType} from "./ThirdFileTypes"; | ||
|
||
export type FirstFileTypes = { | ||
type: MetaModelType[] | ||
} | ||
|
||
type MetaModelType = { | ||
name: string, | ||
description: string, | ||
inputParameters: inputParametersType, | ||
outputParameters?: outputParametersType, | ||
} | ||
|
||
type inputParametersType = { | ||
modelName: ModelNameType, | ||
featuresHeader?: ModelNameType, | ||
hyperparameters?: ModelNameType, | ||
providerName: ModelNameType, | ||
algName: AlgNameType, | ||
|
||
outputParameters: outputParametersType, | ||
|
||
features?: null, | ||
labels?: null, | ||
encoderFeatures?: null, | ||
encoderLabels?: null, | ||
scalers?: null, | ||
} | ||
|
||
type outputParametersType = { | ||
modelId: ModelNameType | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import {AlgNameType} from "./ThirdFileTypes"; | ||
|
||
export type OptionsType = { | ||
hasDynamicData: boolean, | ||
dependsOn: null | string[] | [], | ||
data: string[] | null | DataType[], | ||
} | ||
|
||
type DataType = { | ||
name: string, | ||
value: string, | ||
} | ||
|
||
export type TypesT = { | ||
typeName: string | null, | ||
minValue?: number | null, | ||
maxValue?: number | null, | ||
includeMin?: boolean, | ||
includeMax?: boolean, | ||
options?: OptionsType | ||
itemTypes?: ItemTypes, | ||
dependsOn?: null | string[], | ||
// ??? | ||
itemType?: {} | ItemType, | ||
data?: DataType[], | ||
} | ||
|
||
export type ItemTypes = { | ||
name: ModelNameType, | ||
type?: ModelNameType, | ||
value: ModelNameType, | ||
} | ||
|
||
export type ModelNameType = { | ||
name: string, | ||
description: string, | ||
required?: boolean, | ||
type: TypesT, | ||
providerName?: providerNameType, | ||
algName: AlgNameType, | ||
} | ||
|
||
type providerNameType = { | ||
name: string, | ||
description: string, | ||
required?: boolean, | ||
type: TypesT, | ||
} | ||
|
||
type ItemType = { | ||
typeName: string, | ||
ItemTypes: ItemTypes | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import {TypesT} from "./GeneralTypes"; | ||
|
||
export type ModelTypes = ModelTypesInside[]; | ||
|
||
type ModelTypesInside = { | ||
type: TypesT | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import {TypesT} from "./GeneralTypes"; | ||
|
||
export type AlgNameType = { | ||
algName: { | ||
name: string, | ||
description: string, | ||
required: boolean, | ||
type: TypesT, | ||
} | ||
} |