This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://archive.ics.uci.edu/ml/datasets/Census+Income | |
https://archive.ics.uci.edu/ml/machine-learning-databases/adult/adult.names | |
https://archive.ics.uci.edu/ml/machine-learning-databases/adult/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import serial | |
from time import sleep | |
ser = serial.Serial('/dev/ttyUSB0') | |
ser.baudrate = 115200 | |
while (1): | |
line = ser.readline() | |
line = line.decode("utf-8") | |
first_param, second_param = line.split(",") | |
print(int(first_param), int(second_param)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include "xtimer.h" | |
#include "timex.h" | |
#include "periph/gpio.h" | |
#define MY_LED_1 GPIO_PIN(PORT_C,8) | |
/* set interval to 1 second */ | |
#define INTERVAL (1U * US_PER_SEC) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
APPLICATION = threads | |
RIOTBASE ?= $(CURDIR)/../../RIOT | |
BOARD ?= stm32f0discovery | |
USEMODULE += xtimer | |
CFLAGS += -DDEVELHELP | |
QUIET ?= 1 | |
FEATURES_REQUIRED += periph_timer | |
FEATURES_REQUIRED += periph_gpio |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import numpy as np | |
imported_data = [] | |
dir_paths = ['./data/movie_review/neg/', './data/movie_review/pos/'] | |
for dir_path in dir_paths: | |
for filename in os.listdir(dir_path): | |
with open(dir_path + "/" + filename, 'r') as content_file: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
from sklearn import model_selection as ms | |
from sklearn import tree | |
imported_data = [] | |
for line in open("transfusion.data","r"): | |
line = line.split(",") | |
line = map(int,line) | |
imported_data.append(line) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
from sklearn import model_selection | |
from sklearn import tree | |
imported_data = [] | |
for line in open('transfusion.data','r'): | |
line = line.split(",") | |
line = map(int,line) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
from sklearn.tree import DecisionTreeClassifier | |
from sklearn.model_selection import train_test_split | |
imported_data = [] | |
for line in open('transfusion.data', 'r'): | |
line = line.split(",") | |
line = map(int,line) | |
imported_data.append(line) | |
all_data = np.array(imported_data) | |
X = all_data[:,:4] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// BUTTON WITHOUT THREAD | |
#include <stdio.h> | |
#include "periph/gpio.h" | |
#include "xtimer.h" | |
#include "timex.h" | |
#include <string.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
НОТЫ | |
0001 C1 | |
0002 D1 | |
0003 E1 | |
0004 F1 | |
0005 G1 | |
0006 A1 | |
0007 B1 | |
0008 C2 | |
0009 гамма |
NewerOlder