Skip to content

Instantly share code, notes, and snippets.

View knaggita's full-sized avatar

Keziah knaggita

View GitHub Profile
@knaggita
knaggita / naoqi_install.md
Created June 27, 2021 22:06
Install naoqi

Steps of install naoqi

Requirements

  • Make sure you have either python 2.7 or 2.6 on your machine, so far those are the supported ones. In my case I used python 2.7

  • Go the system preferences and change to allowable downloadable apps from app store. Don't choose the second with another restriction

  • Download both the python sdk and nao sdk from https://developer.softbankrobotics.com/nao6/downloads/nao6-downloads-linux

@knaggita
knaggita / perceptron_hyperplane.py
Created February 17, 2021 03:46
Python Script to Draw Hyperplanes and Lines Perpendicular to it
import warnings
warnings.filterwarnings("ignore", category=FutureWarning)
import numpy as np
from matplotlib import pyplot as plt
import seaborn as sns
# Specify the data and labels
data = np.array([[-4, -3], [-1, -7], [3, 2], [-1, 7], [3, -2]])
labels = np.array([1, -1, 1, -1, 1])