Skip to content

Instantly share code, notes, and snippets.

View glisca's full-sized avatar
💭
Today is the most beautiful day which I ever lived.

Gheorghe Lisca glisca

💭
Today is the most beautiful day which I ever lived.
View GitHub Profile
@glisca
glisca / recording_application_and_microphone.md
Created October 23, 2020 23:09 — forked from varqox/recording_application_and_microphone.md
How to record multiple applications and microphone into one audio file on Linux using PulseAudio

How to record multiple applications and microphone into one audio file on Linux

Step 0. Terminology

Sinks are for output, sources are for input. To stream source to sink a loopback must be created. More shall you find there.

Step 1. Create output sink that will be recorded

Our output sink will be named recording.

pacmd load-module module-null-sink sink_name=recording sink_properties=device.description=recording
@glisca
glisca / RestrictedBoltzmannMachine.py
Created November 17, 2019 14:05 — forked from yusugomori/RestrictedBoltzmannMachine.py
Restricted Boltzmann Machine (RBM) using Contrastive Divergence
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Restricted Boltzmann Machine (RBM)
References :
- Y. Bengio, P. Lamblin, D. Popovici, H. Larochelle: Greedy Layer-Wise
Training of Deep Networks, Advances in Neural Information Processing
Systems 19, 2007
@glisca
glisca / dA.py
Created November 16, 2019 23:04 — forked from yusugomori/dA.py
Denoising Autoencoders using numpy
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Denoising Autoencoders (dA)
References :
- P. Vincent, H. Larochelle, Y. Bengio, P.A. Manzagol: Extracting and
Composing Robust Features with Denoising Autoencoders, ICML'08, 1096-1103,
2008
@glisca
glisca / draw_neural_net.py
Created November 10, 2019 16:34 — forked from craffel/draw_neural_net.py
Draw a neural network diagram with matplotlib!
import matplotlib.pyplot as plt
def draw_neural_net(ax, left, right, bottom, top, layer_sizes):
'''
Draw a neural network cartoon using matplotilb.
:usage:
>>> fig = plt.figure(figsize=(12, 12))
>>> draw_neural_net(fig.gca(), .1, .9, .1, .9, [4, 7, 2])