progress
This commit is contained in:
parent
c4ddb3dc8c
commit
f0ed478b36
2 changed files with 8 additions and 2 deletions
|
@ -2,6 +2,8 @@ import { IsNumber, IsString } from "class-validator";
|
||||||
import { IWeightModel } from "./weights_validation_model";
|
import { IWeightModel } from "./weights_validation_model";
|
||||||
|
|
||||||
export class WeightValidationModel implements IWeightModel {
|
export class WeightValidationModel implements IWeightModel {
|
||||||
|
@IsNumber()
|
||||||
|
public numberOfTrainedEpochs: number;
|
||||||
public processStatus: string;
|
public processStatus: string;
|
||||||
@IsNumber()
|
@IsNumber()
|
||||||
public epoch: number;
|
public epoch: number;
|
||||||
|
|
|
@ -9,6 +9,7 @@ export interface IWeightModel {
|
||||||
project: string | IProjectModel;
|
project: string | IProjectModel;
|
||||||
processStatus: string;
|
processStatus: string;
|
||||||
epoch: number;
|
epoch: number;
|
||||||
|
numberOfTrainedEpochs: number;
|
||||||
}
|
}
|
||||||
export const WeightSchema = new Schema({
|
export const WeightSchema = new Schema({
|
||||||
name: {
|
name: {
|
||||||
|
@ -17,6 +18,9 @@ export const WeightSchema = new Schema({
|
||||||
local_path: {
|
local_path: {
|
||||||
type: String,
|
type: String,
|
||||||
},
|
},
|
||||||
|
numberOfTrainedEpochs: {
|
||||||
|
type: Number,
|
||||||
|
},
|
||||||
neuralNetworkName: {
|
neuralNetworkName: {
|
||||||
type: String,
|
type: String,
|
||||||
},
|
},
|
||||||
|
@ -30,8 +34,8 @@ export const WeightSchema = new Schema({
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false,
|
default: false,
|
||||||
},
|
},
|
||||||
epoch:{
|
epoch: {
|
||||||
type:Number,
|
type: Number,
|
||||||
},
|
},
|
||||||
datasetId: {
|
datasetId: {
|
||||||
type: Schema.Types.ObjectId,
|
type: Schema.Types.ObjectId,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue