Compare commits

...

2 Commits

Author SHA1 Message Date
5817314562 Fix dataset error 2025-03-11 23:35:23 +04:00
dc3d3620b7 Fix startup scripts 2025-03-11 23:35:18 +04:00
4 changed files with 4 additions and 8 deletions

View File

@ -15,8 +15,8 @@ def run_regression(
dataset_params: DatasetParams,
tree_params: DecisionTreeParams,
) -> RegressionResult:
dataset: Dataset = Dataset(path=path, file=file)
try:
dataset: Dataset = Dataset(path=path, file=file)
data = dataset.read(dataset_params)
splitted_dataset: SplittedDataset = dataset.split_regression(
data=data,
@ -38,8 +38,8 @@ def run_classification(
dataset_params: DatasetParams,
tree_params: DecisionTreeParams,
) -> ClassificationResult:
dataset: Dataset = Dataset(path=path, file=file)
try:
dataset: Dataset = Dataset(path=path, file=file)
data = dataset.read(dataset_params)
splitted_dataset: SplittedDataset = dataset.split_classification(
data=data,

View File

@ -1,2 +1,2 @@
#!/bin/bash
gunicorn -w 4 -b 127.0.0.1:8000 run:main
gunicorn -w 4 -b 0.0.0.0:8000 run:app

View File

@ -12,9 +12,5 @@ def debug():
)
def main():
app.run()
if __name__ == "__main__":
debug()

View File

@ -1,2 +1,2 @@
#!/bin/sh
poetry run service.run > /var/log/athene/dt-cart-$(date +%Y-%m-%d-%H-%M-%S).log &
/home/athene/.local/bin/poetry run ./gunicorn.sh > /var/log/athene/dt-cart-$(date +%Y-%m-%d-%H-%M-%S).log &