diff --git a/README.md b/README.md index e4b09230..18149262 100644 --- a/README.md +++ b/README.md @@ -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). diff --git a/docs/api.model_performance.rst b/docs/api.model_performance.rst index 0cf36918..7f0099ac 100644 --- a/docs/api.model_performance.rst +++ b/docs/api.model_performance.rst @@ -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: @@ -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: diff --git a/docs/api.timeseriesflattener.rst b/docs/api.timeseriesflattener.rst index 255b973f..080627b7 100644 --- a/docs/api.timeseriesflattener.rst +++ b/docs/api.timeseriesflattener.rst @@ -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: @@ -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: @@ -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: diff --git a/docs/api.writers.rst b/docs/api.writers.rst index a87b702c..fc0230fa 100644 --- a/docs/api.writers.rst +++ b/docs/api.writers.rst @@ -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: diff --git a/docs/conf.py b/docs/conf.py index 5a9f66a8..2fa9229a 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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 ----------------------------------------------------- diff --git a/example/load_sql.py b/example/load_sql.py index 8b7131de..1fead268 100644 --- a/example/load_sql.py +++ b/example/load_sql.py @@ -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]" diff --git a/src/psycop_ml_utils/loaders/synth/raw/load_synth_data.py b/src/psycop_ml_utils/loaders/synth/raw/load_synth_data.py index b5035027..d5004a58 100644 --- a/src/psycop_ml_utils/loaders/synth/raw/load_synth_data.py +++ b/src/psycop_ml_utils/loaders/synth/raw/load_synth_data.py @@ -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: diff --git a/src/psycop_ml_utils/synth_data_generator/synth_col_generators.py b/src/psycop_ml_utils/synth_data_generator/synth_col_generators.py index 2abe1c9f..f89abdcb 100644 --- a/src/psycop_ml_utils/synth_data_generator/synth_col_generators.py +++ b/src/psycop_ml_utils/synth_data_generator/synth_col_generators.py @@ -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( diff --git a/src/psycop_ml_utils/synth_data_generator/synth_prediction_times_generator.py b/src/psycop_ml_utils/synth_data_generator/synth_prediction_times_generator.py index 6e001d91..cae896af 100644 --- a/src/psycop_ml_utils/synth_data_generator/synth_prediction_times_generator.py +++ b/src/psycop_ml_utils/synth_data_generator/synth_prediction_times_generator.py @@ -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( diff --git a/src/psycop_ml_utils/synth_data_generator/synth_txt_data_generator.py b/src/psycop_ml_utils/synth_data_generator/synth_txt_data_generator.py index 33517679..b26c11d8 100644 --- a/src/psycop_ml_utils/synth_data_generator/synth_txt_data_generator.py +++ b/src/psycop_ml_utils/synth_data_generator/synth_txt_data_generator.py @@ -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( diff --git a/src/psycop_ml_utils/utils.py b/src/psycop_ml_utils/utils.py index 43fd9773..2f148273 100644 --- a/src/psycop_ml_utils/utils.py +++ b/src/psycop_ml_utils/utils.py @@ -1,4 +1,4 @@ -"""Utilities for psycopmlutils.""" +"""Utilities for psycop_ml_utils.""" from pathlib import Path PROJECT_ROOT = Path(__file__).parent.parent.parent diff --git a/tests/test_data/raw/create_synth_prediction_times.py b/tests/test_data/raw/create_synth_prediction_times.py index 9b75afb3..2f9a2ee5 100644 --- a/tests/test_data/raw/create_synth_prediction_times.py +++ b/tests/test_data/raw/create_synth_prediction_times.py @@ -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 diff --git a/tests/test_data/raw/create_synth_raw_binary.py b/tests/test_data/raw/create_synth_raw_binary.py index 271e340b..aa15aee1 100644 --- a/tests/test_data/raw/create_synth_raw_binary.py +++ b/tests/test_data/raw/create_synth_raw_binary.py @@ -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, ) diff --git a/tests/test_data/raw/create_synth_raw_float.py b/tests/test_data/raw/create_synth_raw_float.py index 53795c97..9920dc5e 100644 --- a/tests/test_data/raw/create_synth_raw_float.py +++ b/tests/test_data/raw/create_synth_raw_float.py @@ -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 diff --git a/tests/test_synth_data_generator.py b/tests/test_synth_data_generator.py index f8289b5b..d2eda971 100644 --- a/tests/test_synth_data_generator.py +++ b/tests/test_synth_data_generator.py @@ -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():