Skip to content

Commit

Permalink
refactor: renamed all files to underscore_case
Browse files Browse the repository at this point in the history
  • Loading branch information
yasuiniko committed Oct 31, 2024
1 parent 2971444 commit da50839
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion ml_experiment/Scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from itertools import product
from multiprocessing.pool import Pool
import subprocess
from ml_experiment.metadata.MetadataTableRegistry import MetadataTableRegistry
from ml_experiment.metadata.metadata_table_registry import MetadataTableRegistry

class RunSpec(NamedTuple):
part_name: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import ml_experiment._utils.sqlite as sqlu
from ml_experiment._utils.path import get_results_path
from ml_experiment.metadata.MetadataTableRegistry import MetadataTableRegistry
from ml_experiment.metadata.metadata_table_registry import MetadataTableRegistry

ValueType = int | float | str | bool

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import os
import sqlite3

from ml_experiment.metadata.MetadataTable import MetadataTable
from ml_experiment.metadata.metadata_table import MetadataTable
from ml_experiment._utils.path import get_results_path

class ExperimentDefinition:
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from typing import Dict, Iterable
from ml_experiment._utils.maybe import Maybe
from ml_experiment.metadata.MetadataTable import MetadataTable, ValueType
from ml_experiment.metadata.metadata_table import MetadataTable, ValueType

class MetadataTableRegistry:
def __init__(self):
Expand Down
2 changes: 1 addition & 1 deletion tests/acceptance/my_experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import os
import random

from ml_experiment.ExperimentDefinition import ExperimentDefinition
from ml_experiment.experiment_definition import ExperimentDefinition

parser = argparse.ArgumentParser()
parser.add_argument("--part", type=str, required=True)
Expand Down
6 changes: 3 additions & 3 deletions tests/acceptance/test_softmaxAC_mc.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
import pytest
import subprocess

from ml_experiment.ExperimentDefinition import ExperimentDefinition
from ml_experiment.DefinitionPart import DefinitionPart
from ml_experiment.Scheduler import LocalRunConfig, RunSpec, Scheduler
from ml_experiment.experiment_definition import ExperimentDefinition
from ml_experiment.definition_part import DefinitionPart
from ml_experiment.scheduler import LocalRunConfig, RunSpec, Scheduler


@pytest.fixture
Expand Down
4 changes: 2 additions & 2 deletions tests/metadata/test_MetadataTableRegistry.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import os
import sqlite3

from ml_experiment.DefinitionPart import DefinitionPart
from ml_experiment.metadata.MetadataTableRegistry import MetadataTableRegistry
from ml_experiment.definition_part import DefinitionPart
from ml_experiment.metadata.metadata_table_registry import MetadataTableRegistry


def test_get_parts(tmp_path):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_DefinitionPart.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ml_experiment.DefinitionPart import DefinitionPart
from ml_experiment.definition_part import DefinitionPart


def test_add_sweepable_property():
Expand Down
4 changes: 2 additions & 2 deletions tests/test_ExperimentDefinition.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os

from ml_experiment.DefinitionPart import DefinitionPart
from ml_experiment.ExperimentDefinition import ExperimentDefinition
from ml_experiment.definition_part import DefinitionPart
from ml_experiment.experiment_definition import ExperimentDefinition


def test_ExperimentDefinition(tmp_path):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_generate_configurations.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ml_experiment import DefinitionPart as dp
from ml_experiment import definition_part as dp


def init_esarsa_mc(tmp_path, alphas: list[float], epsilons: list[float], n_steps: list[int]):
Expand Down

0 comments on commit da50839

Please sign in to comment.