Skip to content

Instantly share code, notes, and snippets.

View knaggita's full-sized avatar

Keziah knaggita

View GitHub Profile
@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])
@lasseha
lasseha / vae.py
Last active February 23, 2021 18:11
vae
class Conv(nn.Module):
def __init__(self, in_channels, out_channels, kernel_size, stride=1, padding=0):
super(Conv, self).__init__()
self.conv = nn.Sequential(
nn.Conv2d(in_channels, out_channels, kernel_size, stride, padding, bias=False),
nn.BatchNorm2d(out_channels),
nn.LeakyReLU()
)
@ptoche
ptoche / BibSecretaryProblem.bib
Last active April 16, 2022 21:27
A bibliography on the Secretary Problem in bibtex / bibtopic format (by nature incomplete)
% Bibliography on the Secretary Problem and Related Games (Dynkin's game, Poisson search games, etc.)
@Article{Abdelaziz:Krichen:2005,
author = {Ben Abdelaziz, F. and Krichen, S.},
title = {An Interactive Method for the Optimal Selection Problem with Two Decision Makers},
journal = {European Journal of Operational Research},
volume = {162},
number = {3},
year = {2005},