Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
aimspot committed Jun 26, 2024
1 parent 722b5ef commit d6a5de3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/data_processing/ml_processing/annotation_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
from tqdm import tqdm
from pathlib import Path
from collections import defaultdict
file = Path(__file__).resolve()
project_dir = os.path.dirname(os.path.abspath(__file__))
sys.path.append(os.path.dirname(os.path.dirname(project_dir)))
from src.data_processing.data_utils.utils import load_class_names
from src.data_processing.ml_processing.plots import plot_class_balance
import numpy as np
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
import csv
import yaml
from collections import Counter

file = Path(__file__).resolve()
project_dir = os.path.dirname(os.path.abspath(__file__))
sys.path.append(os.path.dirname(os.path.dirname(project_dir)))

from src.data_processing.ml_processing.plots import plot_class_balance
from src.data_processing.ml_processing.annotation_analysis import analysis_yolo_annotations, analysis_stats
Expand Down
7 changes: 6 additions & 1 deletion src/data_processing/ml_processing/recommendation_module.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
import os
import sys
import pandas as pd
import catboost as cat
from pathlib import Path
import umap.umap_ as umap
import matplotlib.pyplot as plt
from sklearn.preprocessing import StandardScaler, LabelEncoder
from src.data_processing.ml_processing.plots import plot_with_lines_and_predictions
file = Path(__file__).resolve()
project_dir = os.path.dirname(os.path.abspath(__file__))
sys.path.append(os.path.dirname(os.path.dirname(project_dir)))

from src.data_processing.ml_processing.plots import plot_with_lines_and_predictions


def ml_predict(df_rules, df_dataset_features, run_path):
Expand Down

0 comments on commit d6a5de3

Please sign in to comment.