Compare commits

..

No commits in common. "5817314562530ac170e16eedb0caf92fd9ed12f2" and "3a03be0fb11fef9683f817a0353a7a63d8a20482" have entirely different histories.

4 changed files with 8 additions and 4 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 0.0.0.0:8000 run:app
gunicorn -w 4 -b 127.0.0.1:8000 run:main

View File

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

View File

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