Numpy Posted on 2021-02-28 In 5. Machine Learning Initialize0으로 초기화init_zero.py123456789101112131415import numpy as npa = np.zeros(5)b = np.zeros((5,4))print('a = ', a)print('********************')print('b = ', b)print('********************')print('b.shape = ', b.shape)print('********************')print('b.ndim', b.ndim) #len(b.shape)print('********************')print('b.size = ', b.size) Read more »
Exporting AI Model to C++ from MATLAB Posted on 2021-02-26 In 5. Machine Learning MATLAB Coder MATLAB Coder를 통해 C 또는 C++ 코드를 생성할 수 있다. Export types 소스 코드 정적 라이브러리 동적 라이브러리 Prerequisites for Deep Learning Intel CPUs Intel Math Kernel Library for Deep Neural Networks (Intel MKL-DNN) ARM CPUs ARM Compute Library Read more »
Development of a Obstructive Sleep Apnea Diagnosis Algorithm using HRV Posted on 2021-01-14 In Etc. Source in Github HRV(Heart Rate Variability)Detecting R-R IntervalrrInterval.mat123456789function [qrspeaks, locs, y] = rrInterval(time, ecg)t = time;wt = modwt(ecg, 5);wtrec = zeros(size(wt));wtrec(4:5, :) = wt(4:5, :);y = imodwt(wtrec, 'sym4');y = abs(y).^2;[qrspeaks, locs] = findpeaks(y, t, 'MinPeakHeight', 0.1, 'MinPeakDistance', 0.450); %time과 y에 대한 그래프를 해석 후 파라미터 결정end ECG 12>> load mit200>> plot(tm, ecgsig) Read more »
Jupyter Notebook in Raspberry Pi Posted on 2020-09-19 In Etc. Raspberry Pi 초기 설정1234567891011pi@raspberrypi:~ $ sudo apt-get updatepi@raspberrypi:~ $ sudo apt-get install python3-pip -ypi@raspberrypi:~ $ sudo apt-get update -ypi@raspberrypi:~ $ sudo apt-get install python3-venvpi@raspberrypi:~ $ python3 -m venv zerohertzpi@raspberrypi:~ $ source ~/zerohertz/bin/activate(zerohertz) pi@raspberrypi:~ $ pip install --upgrade pip(zerohertz) pi@raspberrypi:~ $ pip install jupyter notebook(zerohertz) pi@raspberrypi:~ $ pip install ipykernel(zerohertz) pi@raspberrypi:~ $ python -m ipykernel install --user --name=zerohertz(zerohertz) pi@raspberrypi:~ $ jupyter notebook --generate-config Read more »