Skip to content

Instantly share code, notes, and snippets.

View nickmitchko's full-sized avatar

NICHOLAI MITCHKO nickmitchko

  • intersystems
View GitHub Profile
/usr/bin/python3.5 /media/nicholai/AEEE-B5B7/School/F16/ComputerVision/Final/Neural-Emotion/adaptiveTraining.py
Using gpu device 0: GeForce GTX 1070 (CNMeM is enabled with initial size: 85.0% of memory, cuDNN 5105)
/home/nicholai/.local/lib/python3.5/site-packages/theano/sandbox/cuda/__init__.py:600: UserWarning: Your cuDNN version is more recent than the one Theano officially supports. If you see any problems, try updating Theano or downgrading cuDNN to version 5.
warnings.warn(warn)
/home/nicholai/.local/lib/python3.5/site-packages/theano/tensor/signal/downsample.py:6: UserWarning: downsample module has been moved to the theano.tensor.signal.pool module.
"downsample module has been moved to the theano.tensor.signal.pool module.")
/home/nicholai/.local/lib/python3.5/site-packages/sklearn/cross_validation.py:44: DeprecationWarning: This module was deprecated in version 0.18 in favor of the model_selection module into which all the refactored classes and functions are moved. Also note that the interface of
network = NeuralNet(
layers=[('input', layers.InputLayer),
('conv2d1', layers.Conv2DLayer),
('maxpool1', layers.MaxPool2DLayer),
('conv2d2', layers.Conv2DLayer),
('maxpool2', layers.MaxPool2DLayer),
('dropout1', layers.DropoutLayer),
('dense', layers.DenseLayer),
('dropout2', layers.DropoutLayer),
('output', layers.DenseLayer),
import dlib
import numpy
from skimage import io as ImageIO
from skimage.color import rgb2gray
from skimage.transform import resize
from scipy.ndimage import gaussian_filter
def extract_faces(filename, face_detector, face_size=100, padding=25, blur=True):
img = gaussian_filter(ImageIO.imread(filename), sigma=1) if blur else ImageIO.imread(filename)
nicholai@nicholai-desktop $> python3 train.py --verbose
/usr/bin/python3.5 /media/nicholai/AEEE-B5B7/School/F16/ComputerVision/Final/Neural-Emotion/adaptiveTraining.py
Using gpu device 0: GeForce GTX 1070 (CNMeM is enabled with initial size: 85.0% of memory, cuDNN 5105)
/home/nicholai/.local/lib/python3.5/site-packages/theano/sandbox/cuda/__init__.py:600: UserWarning: Your cuDNN version is more recent than the one Theano officially supports. If you see any problems, try updating Theano or downgrading cuDNN to version 5.
warnings.warn(warn)
/home/nicholai/.local/lib/python3.5/site-packages/theano/tensor/signal/downsample.py:6: UserWarning: downsample module has been moved to the theano.tensor.signal.pool module.
"downsample module has been moved to the theano.tensor.signal.pool module.")
/home/nicholai/.local/lib/python3.5/site-packages/sklearn/cross_validation.py:44: DeprecationWarning: This module was deprecated in version 0.18 in favor of the model_selection module into which all the refactored classes
@nickmitchko
nickmitchko / HeikinAshiCandle.java
Created July 1, 2020 14:37
HeikinAshi Candle Implementation
package com.nmitchko.storage.Candles;
import com.nmitchko.storage.Candle;
import com.nmitchko.storage.Candles.enums.CandleDirection;
import com.nmitchko.storage.Candles.enums.CandlePeriod;
import com.nmitchko.storage.Candles.enums.CandleType;
import org.ta4j.core.Bar;
import java.sql.Timestamp;