This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
class KNNClassifier(object): | |
def __init__(self, data, labels, k): | |
self.data = data | |
self.labels = labels | |
self.k = k | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import tarfile | |
import urllib | |
from datetime import datetime | |
import boto3 | |
s3_client = boto3.client('s3') | |
dynamo = boto3.resource('dynamodb') |