Skip to content

Commit

Permalink
Refactor main script imports; add new metric calculations and style p…
Browse files Browse the repository at this point in the history
…arameter handling for enhanced functionality
  • Loading branch information
stochastic-sisyphus authored Dec 10, 2024
1 parent 9979cec commit 6496a6a
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,13 @@
from src.evaluation.metrics import EvaluationMetrics
from src.clustering.dynamic_cluster_manager import DynamicClusterManager
from src.utils.metrics_utils import calculate_cluster_metrics
from src.utils.style_selector import determine_cluster_style
from src.utils.style_selector import determine_cluster_style, get_style_parameters
from src.utils.logging_config import setup_logging
from src.utils.metrics_utils import (
calculate_cluster_variance,
calculate_lexical_diversity,
calculate_cluster_metrics
)
else:
# Use relative imports when imported as module
from .data_loader import DataLoader
Expand All @@ -30,8 +35,13 @@
from .evaluation.metrics import EvaluationMetrics
from .clustering.dynamic_cluster_manager import DynamicClusterManager
from .utils.metrics_utils import calculate_cluster_metrics
from .utils.style_selector import determine_cluster_style
from .utils.style_selector import determine_cluster_style, get_style_parameters
from .utils.logging_config import setup_logging
from .utils.metrics_utils import (
calculate_cluster_variance,
calculate_lexical_diversity,
calculate_cluster_metrics
)

import yaml
import pandas as pd
Expand Down

0 comments on commit 6496a6a

Please sign in to comment.