Skip to content
Closed
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
Binary file added branding/icon/sagemaker-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 20 additions & 13 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,20 +52,32 @@
# for source files.
exclude_trees = ["_build"]

pygments_style = "default"
highlight_language = "python3"
pygments_style = "sphinx"

autoclass_content = "both"
autodoc_default_flags = ["show-inheritance", "members", "undoc-members"]
autodoc_member_order = "bysource"

html_theme = "sphinx_rtd_theme"
html_theme = "pydata_sphinx_theme"

html_logo = "../branding/icon/sagemaker-icon.png"
html_favicon = "../branding/icon/sagemaker-icon.png"

html_theme_options = {
"collapse_navigation": True,
"sticky_navigation": True,
"navigation_depth": 6,
"includehidden": True,
"titles_only": False,
"icon_links": [
{
"name": "GitHub",
"url": "https://github.com/aws/sagemaker-python-sdk",
"icon": "fa-brands fa-square-github",
"type": "fontawesome",
}
],
"logo": {
"text": "Amazon Sagemaker SDK",
},
}


Expand All @@ -83,16 +95,11 @@

html_css_files = [
"https://cdn.datatables.net/1.10.23/css/jquery.dataTables.min.css",
"_static/theme_overrides.css",
"_static/pagination.css",
"_static/search_accessories.css",
]

html_context = {
"css_files": [
"_static/theme_overrides.css",
"_static/pagination.css",
"_static/search_accessories.css",
]
}

# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {"http://docs.python.org/": None}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ either, so you can simplify the layout at the same time:

You should now have a directory structure like this:

::
.. code-block:: text

└── multi
├── model1
Expand Down
4 changes: 2 additions & 2 deletions doc/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
sphinx==3.1.2
sphinx-rtd-theme==0.5.0
sphinx==5.1.1
pydata-sphinx-theme==0.14.1
docutils==0.15.2
packaging==20.9
jinja2<3.1
Expand Down
2 changes: 1 addition & 1 deletion doc/v2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ Usage

Currently, the tool supports only converting one file at a time:

.. code::
.. code:: bash

$ sagemaker-upgrade-v2 --in-file input.py --out-file output.py
$ sagemaker-upgrade-v2 --in-file input.ipynb --out-file output.ipynb
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# ANY KIND, either express or implied. See the License for the specific
# language governing permissions and limitations under the License.
"""Feature Processor decorator for feature transformation functions."""
from __future__ import absolute_import
from __future__ import absolute_import, annotations

from typing import Any, Callable, Dict, List, Optional, Sequence, Union

Expand All @@ -33,7 +33,7 @@

def feature_processor(
inputs: Sequence[
Union[FeatureGroupDataSource, CSVDataSource, ParquetDataSource, BaseDataSource]
FeatureGroupDataSource | CSVDataSource | ParquetDataSource | BaseDataSource
],
output: str,
target_stores: Optional[List[str]] = None,
Expand Down Expand Up @@ -79,8 +79,8 @@ def transform(input_feature_group, input_csv):
return ...

Args:
inputs (Sequence[Union[FeatureGroupDataSource, CSVDataSource, ParquetDataSource,
BaseDataSource]]): A list of data sources.
inputs (Sequence[FeatureGroupDataSource | CSVDataSource | ParquetDataSource
| BaseDataSource]): A list of data sources.
output (str): A Feature Group ARN to write results of this function to.
target_stores (Optional[list[str]], optional): A list containing at least one of
'OnlineStore' or 'OfflineStore'. If unspecified, data will be ingested to the enabled
Expand Down
4 changes: 2 additions & 2 deletions src/sagemaker/jumpstart/estimator.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,8 @@ def __init__(
(Default: None).
model_channel_name (Optional[Union[str, PipelineVariable]]): Name of the channel where
'model_uri' will be downloaded. (Default: None).
metric_definitions (Optional[Union[list[dict[str, str], list[dict[str,
PipelineVariable]]]]): A list of dictionaries that defines the metric(s)
metric_definitions (Optional[Union[list[dict[str, str], list[dict[str,PipelineVariable]]]]):
A list of dictionaries that defines the metric(s)
used to evaluate the training jobs. Each dictionary contains two keys: 'Name'
for the name of the metric, and 'Regex' for the regular expression used to extract
the metric from the logs. This should be defined only for jobs that
Expand Down