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 folders #1478

Merged
merged 19 commits into from
Jul 16, 2021
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
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import argparse

from azureml.studio.core.logger import module_logger as logger
from reco_utils.dataset.python_splitters import python_stratified_split
from reco_utils.datasets.python_splitters import python_stratified_split
from azureml.studio.core.data_frame_schema import DataFrameSchema
from azureml.studio.core.io.data_frame_directory import (
load_data_frame_from_directory,
Expand All @@ -13,30 +13,41 @@
parser = argparse.ArgumentParser()

parser.add_argument(
"--input-path", help="The input directory.",
"--input-path",
help="The input directory.",
)

parser.add_argument(
"--ratio", type=float, help="A float parameter.",
"--ratio",
type=float,
help="A float parameter.",
)

parser.add_argument(
"--col-user", type=str, help="A string parameter.",
"--col-user",
type=str,
help="A string parameter.",
)

parser.add_argument(
"--col-item", type=str, help="A string parameter.",
"--col-item",
type=str,
help="A string parameter.",
)

parser.add_argument(
"--seed", type=int, help="An int parameter.",
"--seed",
type=int,
help="An int parameter.",
)

parser.add_argument(
"--output-train", help="The output training data directory.",
"--output-train",
help="The output training data directory.",
)
parser.add_argument(
"--output-test", help="The output test data directory.",
"--output-test",
help="The output test data directory.",
)

args, _ = parser.parse_known_args()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import joblib
from pathlib import Path

from reco_utils.recommender.sar import SAR
from reco_utils.models.sar import SAR

from azureml.studio.core.logger import module_logger as logger
from azureml.studio.core.utils.fileutils import ensure_folder
Expand Down
26 changes: 13 additions & 13 deletions docs/source/dataset.rst → docs/source/datasets.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ information, ratings, and a plaintext review.
J. McAuley and J. Leskovec, "Hidden factors and hidden topics: understanding rating dimensions with review text",
RecSys, 2013.

.. automodule:: reco_utils.dataset.amazon_reviews
.. automodule:: reco_utils.datasets.amazon_reviews
:members:

CORD-19
Expand All @@ -44,7 +44,7 @@ to generate new insights in support of the fight against this infectious disease
Funk, K., Kinney, R., Liu, Z., Merrill, W. and Mooney, P. "Cord-19: The COVID-19 Open Research Dataset.", 2020.


.. automodule:: reco_utils.dataset.covid_utils
.. automodule:: reco_utils.datasets.covid_utils
:members:

Criteo
Expand All @@ -55,7 +55,7 @@ for millions of display Ads. Every Ad has has 40 attributes, the first attribute
that the Ad has been clicked on and a 0 represents it wasn't clicked on. The rest consist of 13 integer columns and
26 categorical columns.

.. automodule:: reco_utils.dataset.criteo
.. automodule:: reco_utils.datasets.criteo
:members:

MIND
Expand All @@ -76,7 +76,7 @@ this impression. To protect user privacy, each user was de-linked from the produ



.. automodule:: reco_utils.dataset.mind
.. automodule:: reco_utils.datasets.mind
:members:

MovieLens
Expand All @@ -101,52 +101,52 @@ It comes with several sizes:
ACM Transactions on Interactive Intelligent Systems (TiiS) 5, 4, Article 19,
DOI=http://dx.doi.org/10.1145/2827872, 2015.

.. automodule:: reco_utils.dataset.movielens
.. automodule:: reco_utils.datasets.movielens
:members:

Download utilities
******************

.. automodule:: reco_utils.dataset.download_utils
.. automodule:: reco_utils.datasets.download_utils
:members:


Cosmos CLI utilities
*********************

.. automodule:: reco_utils.dataset.cosmos_cli
.. automodule:: reco_utils.datasets.cosmos_cli
:members:


Pandas dataframe utilities
***************************

.. automodule:: reco_utils.dataset.pandas_df_utils
.. automodule:: reco_utils.datasets.pandas_df_utils
:members:


Splitter utilities
******************

.. automodule:: reco_utils.dataset.python_splitters
.. automodule:: reco_utils.datasets.python_splitters
:members:

.. automodule:: reco_utils.dataset.spark_splitters
.. automodule:: reco_utils.datasets.spark_splitters
:members:

.. automodule:: reco_utils.dataset.split_utils
.. automodule:: reco_utils.datasets.split_utils
:members:


Sparse utilities
****************

.. automodule:: reco_utils.dataset.sparse
.. automodule:: reco_utils.datasets.sparse
:members:


Knowledge graph utilities
*************************

.. automodule:: reco_utils.dataset.wikidata
.. automodule:: reco_utils.datasets.wikidata
:members:
6 changes: 3 additions & 3 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ evaluating recommender systems.
:maxdepth: 1
:caption: Contents:

Common <common>
Dataset <dataset>
Utils <utils>
Datasets <datasets>
Evaluation <evaluation>
Recommender algorithms <recommender>
Recommender algorithms <models>
Hyperparameter tuning <tuning>


Expand Down
Loading