feat: closes #18 added the code to generate models and other
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
-- drop table if exists model_data_point;
|
||||
-- drop table if exists model_defenitions;
|
||||
-- drop table if exists model_definition_layer;
|
||||
-- drop table if exists model_definition;
|
||||
-- drop table if exists models;
|
||||
create table if not exists models (
|
||||
id uuid primary key default gen_random_uuid(),
|
||||
@@ -32,3 +33,37 @@ create table if not exists model_data_point (
|
||||
-- 2 testing
|
||||
model_mode integer default 1
|
||||
);
|
||||
|
||||
-- drop table if exists model_definition;
|
||||
-- drop table if exists model_definition;
|
||||
create table if not exists model_definition (
|
||||
id uuid primary key default gen_random_uuid(),
|
||||
model_id uuid references models (id) on delete cascade,
|
||||
accuracy integer default 0,
|
||||
target_accuracy integer not null,
|
||||
epoch integer default 0,
|
||||
-- TODO add max epoch
|
||||
-- 1: Pre Init
|
||||
-- 2: Init
|
||||
-- 3: Training
|
||||
-- 4: Tranied
|
||||
-- 5: Ready
|
||||
status integer default 1,
|
||||
created_on timestamp default current_timestamp
|
||||
);
|
||||
|
||||
-- drop table if exists model_definition_layer;
|
||||
create table if not exists model_definition_layer (
|
||||
id uuid primary key default gen_random_uuid(),
|
||||
def_id uuid references model_definition (id) on delete cascade,
|
||||
layer_order integer not null,
|
||||
-- 1: input
|
||||
-- 2: dense
|
||||
-- 3: flatten
|
||||
-- TODO add conv
|
||||
layer_type integer not null,
|
||||
-- ei 28,28,1
|
||||
-- a 28x28 grayscale image
|
||||
shape text not null
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user