-
Notifications
You must be signed in to change notification settings - Fork 85
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
1 parent
ff2f266
commit c58363d
Showing
13 changed files
with
21,806 additions
and
4,065 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 +1,3 @@ | ||
.idea | ||
.idea | ||
venv | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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,95 @@ | ||
"""empty message | ||
Revision ID: 8c0a5e6ec8cf | ||
Revises: 8f6baba4a236 | ||
Create Date: 2022-07-11 23:42:30.547433 | ||
""" | ||
import sqlalchemy as sa | ||
from alembic import op | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "8c0a5e6ec8cf" | ||
down_revision = "8f6baba4a236" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.create_table( | ||
"data_file", | ||
sa.Column("id", sa.Integer(), autoincrement=True, nullable=False), | ||
sa.Column("file_name", sa.String(length=100), nullable=False), | ||
sa.Column("file_type", sa.String(length=10), nullable=False), | ||
sa.Column("created_on", sa.DateTime(), server_default=sa.text("now()"), nullable=True), | ||
sa.Column("updated_on", sa.DateTime(), server_default=sa.text("now()"), nullable=True), | ||
sa.PrimaryKeyConstraint("id"), | ||
) | ||
op.create_table( | ||
"data_process", | ||
sa.Column("id", sa.Integer(), autoincrement=True, nullable=False), | ||
sa.Column("target", sa.String(length=10), nullable=False), | ||
sa.Column("file_id", sa.Integer(), nullable=True), | ||
sa.Column("created_on", sa.DateTime(), server_default=sa.text("now()"), nullable=True), | ||
sa.Column("updated_on", sa.DateTime(), server_default=sa.text("now()"), nullable=True), | ||
sa.ForeignKeyConstraint( | ||
["file_id"], | ||
["data_file.id"], | ||
), | ||
sa.PrimaryKeyConstraint("id"), | ||
) | ||
op.create_table( | ||
"model_basic", | ||
sa.Column("id", sa.Integer(), autoincrement=True, nullable=False), | ||
sa.Column("model_name", sa.String(length=50), nullable=False), | ||
sa.Column("model_dataset", sa.Integer(), nullable=True), | ||
sa.Column("model_type", sa.Integer(), nullable=False), | ||
sa.Column("target_class", sa.String(length=50), nullable=False), | ||
sa.Column("created_on", sa.DateTime(), server_default=sa.text("now()"), nullable=True), | ||
sa.Column("updated_on", sa.DateTime(), server_default=sa.text("now()"), nullable=True), | ||
sa.ForeignKeyConstraint( | ||
["model_dataset"], | ||
["data_file.id"], | ||
), | ||
sa.PrimaryKeyConstraint("id"), | ||
) | ||
op.create_table( | ||
"model_configs", | ||
sa.Column("id", sa.Integer(), autoincrement=True, nullable=False), | ||
sa.Column("parameter", sa.String(length=50), nullable=False), | ||
sa.Column("value", sa.String(length=50), nullable=False), | ||
sa.Column("model_id", sa.Integer(), nullable=True), | ||
sa.Column("created_on", sa.DateTime(), server_default=sa.text("now()"), nullable=True), | ||
sa.Column("updated_on", sa.DateTime(), server_default=sa.text("now()"), nullable=True), | ||
sa.ForeignKeyConstraint( | ||
["model_id"], | ||
["model_basic.id"], | ||
), | ||
sa.PrimaryKeyConstraint("id"), | ||
) | ||
op.create_table( | ||
"model_results", | ||
sa.Column("id", sa.Integer(), autoincrement=True, nullable=False), | ||
sa.Column("model_id", sa.Integer(), nullable=True), | ||
sa.Column("epoc", sa.Integer(), nullable=False), | ||
sa.Column("iteration", sa.Integer(), nullable=False), | ||
sa.Column("metric", sa.String(length=50), nullable=False), | ||
sa.Column("value", sa.Float(), nullable=False), | ||
sa.ForeignKeyConstraint( | ||
["model_id"], | ||
["model_basic.id"], | ||
), | ||
sa.PrimaryKeyConstraint("id"), | ||
) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_table("model_results") | ||
op.drop_table("model_configs") | ||
op.drop_table("model_basic") | ||
op.drop_table("data_process") | ||
op.drop_table("data_file") | ||
# ### end Alembic commands ### |
Empty file.