Skip to content

Instantly share code, notes, and snippets.

View VladimirYugay's full-sized avatar

Vladimir Yugay VladimirYugay

View GitHub Profile
@VladimirYugay
VladimirYugay / knn.py
Created May 3, 2022 21:43
KNN classifier in pure numpy
import numpy as np
class KNNClassifier(object):
def __init__(self, data, labels, k):
self.data = data
self.labels = labels
self.k = k
@VladimirYugay
VladimirYugay / indexer.py
Last active June 30, 2020 17:43
Scripts for packing and uploading AWS lambdas
import json
import tarfile
import urllib
from datetime import datetime
import boto3
s3_client = boto3.client('s3')
dynamo = boto3.resource('dynamodb')