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

[Major] Speedup dataset get_item #1636

Merged
merged 24 commits into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from 4 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
Expand Up @@ -750,9 +750,8 @@
"source": [
"try:\n",
" # it already installed dependencies\n",
" from torchsummary import summary\n",
" from torchviz import make_dot\n",
"except:\n",
"except ImportError:\n",
" # install graphviz on system\n",
" import platform\n",
"\n",
Expand All @@ -768,7 +767,6 @@
" !pip install torchviz\n",
" !pip install graphviz\n",
" # import\n",
" from torchsummary import summary\n",
" from torchviz import make_dot"
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1308,9 +1308,8 @@
"source": [
"try:\n",
" # it already installed dependencies\n",
" from torchsummary import summary\n",
" from torchviz import make_dot\n",
"except:\n",
"except ImportError:\n",
" # install graphviz on system\n",
" import platform\n",
"\n",
Expand All @@ -1326,7 +1325,6 @@
" !pip install torchviz\n",
" !pip install graphviz\n",
" # import\n",
" from torchsummary import summary\n",
" from torchviz import make_dot"
]
},
Expand Down
4 changes: 2 additions & 2 deletions docs/source/how-to-guides/feature-guides/mlflow.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@
},
{
"cell_type": "markdown",
"id": "7fb27b941602401d91542211134fc71a",
"metadata": {},
"source": [
"## Advanced Example \n",
Expand All @@ -246,6 +247,7 @@
{
"cell_type": "code",
"execution_count": 7,
"id": "acae54e37e7d407bbb7b55eff062a284",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -254,7 +256,6 @@
"# Copy and paste url from command line to web browser\n",
"\n",
"import mlflow\n",
"import torchmetrics\n",
"from mlflow.data.pandas_dataset import PandasDataset\n",
"\n",
"if local:\n",
Expand All @@ -272,7 +273,6 @@
" )\n",
"\n",
" import mlflow.pytorch\n",
" from mlflow.client import MlflowClient\n",
"\n",
" model_name = \"NeuralProphet\"\n",
"\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
" # it already installed dependencies\n",
" from torchsummary import summary\n",
" from torchviz import make_dot\n",
"except:\n",
"except ImportError:\n",
" # install graphviz on system\n",
" import platform\n",
"\n",
Expand Down Expand Up @@ -69,7 +69,7 @@
"source": [
"try:\n",
" from neuralprophet import NeuralProphet\n",
"except:\n",
"except ImportError:\n",
" # if NeuralProphet is not installed yet:\n",
" !pip install git+https://github.com/ourownstory/neural_prophet.git\n",
" from neuralprophet import NeuralProphet"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,11 +240,12 @@
"# Set loggers to ERROR level\n",
"import logging\n",
"import warnings\n",
"from neuralprophet import set_log_level\n",
"\n",
"\n",
"logging.getLogger(\"prophet\").setLevel(logging.ERROR)\n",
"warnings.filterwarnings(\"ignore\")\n",
"\n",
"from neuralprophet import set_log_level\n",
"\n",
"set_log_level(\"ERROR\")"
]
Expand Down
Loading
Loading