Skip to content

Commit ef3f7c8

Browse files
committed
Updated: NTM example notebook to use Python SDK
1 parent b44ba85 commit ef3f7c8

File tree

5 files changed

+55
-920
lines changed

5 files changed

+55
-920
lines changed

introduction_to_amazon_algorithms/ntm_synthetic/AmazonAIAlgorithmsIO_pb2.py

Lines changed: 0 additions & 101 deletions
This file was deleted.

introduction_to_amazon_algorithms/ntm_synthetic/convert_data.py

Lines changed: 0 additions & 90 deletions
This file was deleted.

introduction_to_amazon_algorithms/ntm_synthetic/generate_example_data.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at
4+
#
5+
# http://aws.amazon.com/apache2.0/
6+
#
7+
# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
8+
19
import matplotlib
210
import matplotlib.pyplot as plt
311
import matplotlib.cm as cm
@@ -149,4 +157,4 @@ def match_estimated_topics(topics_known, topics_estimated):
149157
permutation[i] = estimated_topic_index
150158
break
151159

152-
return (topics_estimated[permutation,:]).copy()
160+
return (topics_estimated[permutation,:]).copy()

0 commit comments

Comments
 (0)