Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename files according to underscore_case #25

Merged
merged 3 commits into from
Nov 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
4 changes: 2 additions & 2 deletions tests/acceptance/test_softmaxAC_mc.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import os
import pytest

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


Expand Down
Empty file.
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
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
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
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
Loading