Switched To point for datasets
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import type { Point } from "chart.js";
|
||||
|
||||
export type Iteration = {
|
||||
iteration: number;
|
||||
exampleIndex: number;
|
||||
@@ -7,10 +9,16 @@ export type Iteration = {
|
||||
|
||||
export type Dataset = {
|
||||
label: string;
|
||||
data: { x: number; y: number }[];
|
||||
data: DatasetPoint[];
|
||||
defaultLearningRate: number | undefined;
|
||||
};
|
||||
|
||||
export type DatasetPoint = {
|
||||
x: number;
|
||||
y: number;
|
||||
label: number;
|
||||
};
|
||||
|
||||
export type InitializationMethod = 'zeros' | 'random';
|
||||
|
||||
export type PerceptronType = 'simple';
|
||||
|
||||
Reference in New Issue
Block a user