Skip to content

Commit

Permalink
fix: rename to psycop_ml_utils
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinBernstorff committed Mar 9, 2023
1 parent 1fce022 commit e64c724
Show file tree
Hide file tree
Showing 15 changed files with 24 additions and 24 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ Current priorities are on the [Board 🎬](https://github.com/orgs/Aarhus-Psychi
To get started using psycop-ml-utils simply install it using pip by running the following line in your terminal:

```
poetry add psycopmlutils
poetry add psycop_ml_utils
```

or using `pip`:

```
pip install psycopmlutils
pip install psycop_ml_utils
```

For more detailed instructions on installation e.g. including installation for development, see the [installation instructions](https://Aarhus-Psychiatry-Research.github.io/psycop-ml-utils/installation).
Expand Down
4 changes: 2 additions & 2 deletions docs/api.model_performance.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Model Performance
model_performance.model_performance
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. automodule:: psycopmlutils.model_performance.model_performance
.. automodule:: psycop_ml_utils.model_performance.model_performance
:members:
:undoc-members:
:show-inheritance:
Expand All @@ -14,7 +14,7 @@ model_performance.model_performance
model_performance.utils
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. automodule:: psycopmlutils.model_performance.utils
.. automodule:: psycop_ml_utils.model_performance.utils
:members:
:undoc-members:
:show-inheritance:
Expand Down
6 changes: 3 additions & 3 deletions docs/api.timeseriesflattener.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Time Series Flattener
timeseriesflattener.create_feature_combinations
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. automodule:: psycopmlutils.timeseriesflattener.create_feature_combinations
.. automodule:: psycop_ml_utils.timeseriesflattener.create_feature_combinations
:members:
:undoc-members:
:show-inheritance:
Expand All @@ -14,7 +14,7 @@ timeseriesflattener.create_feature_combinations
timeseriesflattener.flattened_dataset
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. automodule:: psycopmlutils.timeseriesflattener.flattened_dataset
.. automodule:: psycop_ml_utils.timeseriesflattener.flattened_dataset
:members:
:undoc-members:
:show-inheritance:
Expand All @@ -24,7 +24,7 @@ timeseriesflattener.flattened_dataset
timeseriesflattener.resolve_multiple_functions
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. automodule:: psycopmlutils.timeseriesflattener.resolve_multiple_functions
.. automodule:: psycop_ml_utils.timeseriesflattener.resolve_multiple_functions
:members:
:undoc-members:
:show-inheritance:
Expand Down
2 changes: 1 addition & 1 deletion docs/api.writers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Writers
writers.sql_writer
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. automodule:: psycopmlutils.writers.sql_writer
.. automodule:: psycop_ml_utils.writers.sql_writer
:members:
:undoc-members:
:show-inheritance:
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# documentation root, use os.path.abspath to make it absolute, like shown here.
#

from psycopmlutils import __version__
from psycop_ml_utils import __version__

# -- Project information -----------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion example/load_sql.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Example of how to load IDs from sql."""

from psycopmlutils.sql.loader import sql_load
from psycop_ml_utils.sql.loader import sql_load

if __name__ == "__main__":
VIEW = "[psycop_t2d_train]"
Expand Down
2 changes: 1 addition & 1 deletion src/psycop_ml_utils/loaders/synth/raw/load_synth_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import pandas as pd

from psycopmlutils.utils import PROJECT_ROOT, data_loaders
from psycop_ml_utils.utils import PROJECT_ROOT, data_loaders


def load_raw_test_csv(filename: str, n_rows: Optional[int] = None) -> pd.DataFrame:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import pandas as pd
from scipy import stats

from psycopmlutils.utils import PROJECT_ROOT
from psycop_ml_utils.utils import PROJECT_ROOT


def create_outcome_values(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
import numpy as np
import pandas as pd

from psycopmlutils.synth_data_generator.synth_col_generators import (
from psycop_ml_utils.synth_data_generator.synth_col_generators import (
create_outcome_values,
generate_data_columns,
)
from psycopmlutils.synth_data_generator.utils import replace_vals_with_na
from psycop_ml_utils.synth_data_generator.utils import replace_vals_with_na


def generate_synth_data(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@

import pandas as pd

from psycopmlutils.synth_data_generator.synth_col_generators import (
from psycop_ml_utils.synth_data_generator.synth_col_generators import (
generate_data_columns,
)
from psycopmlutils.synth_data_generator.utils import replace_vals_with_na
from psycop_ml_utils.synth_data_generator.utils import replace_vals_with_na


def generate_synth_txt_data(
Expand Down
2 changes: 1 addition & 1 deletion src/psycop_ml_utils/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Utilities for psycopmlutils."""
"""Utilities for psycop_ml_utils."""
from pathlib import Path

PROJECT_ROOT = Path(__file__).parent.parent.parent
4 changes: 2 additions & 2 deletions tests/test_data/raw/create_synth_prediction_times.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
"""Generate dataframe with prediction times."""

from psycopmlutils.synth_data_generator.synth_col_generators import (
from psycop_ml_utils.synth_data_generator.synth_col_generators import (
generate_data_columns,
)
from psycopmlutils.utils import PROJECT_ROOT
from psycop_ml_utils.utils import PROJECT_ROOT

if __name__ == "__main__":
# Get project root directory
Expand Down
2 changes: 1 addition & 1 deletion tests/test_data/raw/create_synth_raw_binary.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from pathlib import Path

from psycopmlutils.synth_data_generator.synth_col_generators import (
from psycop_ml_utils.synth_data_generator.synth_col_generators import (
generate_data_columns,
)

Expand Down
4 changes: 2 additions & 2 deletions tests/test_data/raw/create_synth_raw_float.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
"""Generate raw float dataframe."""

from psycopmlutils.synth_data_generator.synth_col_generators import (
from psycop_ml_utils.synth_data_generator.synth_col_generators import (
generate_data_columns,
)
from psycopmlutils.utils import PROJECT_ROOT
from psycop_ml_utils.utils import PROJECT_ROOT

if __name__ == "__main__":
# Get project root directory
Expand Down
4 changes: 2 additions & 2 deletions tests/test_synth_data_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

import numpy as np

from psycopmlutils.synth_data_generator.synth_prediction_times_generator import (
from psycop_ml_utils.synth_data_generator.synth_prediction_times_generator import (
generate_synth_data,
)
from psycopmlutils.utils import PROJECT_ROOT
from psycop_ml_utils.utils import PROJECT_ROOT


def test_synth_data_generator():
Expand Down

0 comments on commit e64c724

Please sign in to comment.