Link pros scripts: https://gist.github.com/jessicalewinter/e2b83cfe03087ca7db929289f39ef743 https://gist.github.com/jessicalewinter/02783ccd39b130b1e4429b00551ae931
This file contains hidden or 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
| #!/bin/bash | |
| TEMPWORD='.png' | |
| hdr_file=text | |
| hdrtxt=$(sed "s/$/$TEMPWORD /" "$hdr_file") | |
| echo "$hdrtxt" > test-out |
This file contains hidden or 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
| #!/bin/bash | |
| search_dir=imgs | |
| for entry in "$search_dir"/* | |
| do | |
| echo "$entry" >> text | |
| done | |
| sed 's/\.[a-z]*$//' text >> temporary | |
| mv temporary text |
This file contains hidden or 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
| age, competition, type, profit | |
| old, yes, swr, down | |
| old, no, swr, down | |
| old, no, hwr, down | |
| mid, yes, swr, down | |
| mid, yes, hwr, down | |
| mid, no, hwr, up | |
| mid, no, swr, up | |
| new, yes, swr, up | |
| new, no, hwr, up |
This file contains hidden or 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 | |
| import math | |
| import csv | |
| def read_data(filename): | |
| with open(filename, 'r') as csvfile: | |
| datareader = csv.reader(csvfile, delimiter=',') | |
| headers = next(datareader) | |
| metadata = [] |
This file contains hidden or 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
| #Iris dataset: https://gist.github.com/jessicalewinter/0a81b4b7d1fa27c3e5c5da1f2276c613 | |
| import operator | |
| import random | |
| import math | |
| import csv | |
| def loadDataset(filename, split, trainingSet=[] , testSet=[]): | |
| with open(filename, 'rb') as csvfile: | |
| lines = csv.reader(csvfile) | |
| dataset = list(lines) |
This file contains hidden or 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
| #Iris dataset: https://gist.github.com/jessicalewinter/0a81b4b7d1fa27c3e5c5da1f2276c613 | |
| import operator | |
| import random | |
| import math | |
| import csv | |
| def loadDataset(filename, split, trainingSet=[] , testSet=[]): | |
| with open(filename, 'rb') as csvfile: | |
| lines = csv.reader(csvfile) |
This file contains hidden or 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
| #Iris dataset: https://gist.github.com/jessicalewinter/0a81b4b7d1fa27c3e5c5da1f2276c613 | |
| import csv | |
| import random | |
| import math | |
| import operator | |
| def loadDataset(filename, split, trainingSet=[] , testSet=[]): | |
| with open(filename, 'rb') as csvfile: | |
| lines = csv.reader(csvfile) | |
| dataset = list(lines) |
This file contains hidden or 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
| 5.1,3.5,1.4,0.2,Iris-setosa | |
| 4.9,3.0,1.4,0.2,Iris-setosa | |
| 4.7,3.2,1.3,0.2,Iris-setosa | |
| 4.6,3.1,1.5,0.2,Iris-setosa | |
| 5.0,3.6,1.4,0.2,Iris-setosa | |
| 5.4,3.9,1.7,0.4,Iris-setosa | |
| 4.6,3.4,1.4,0.3,Iris-setosa | |
| 5.0,3.4,1.5,0.2,Iris-setosa | |
| 4.4,2.9,1.4,0.2,Iris-setosa | |
| 4.9,3.1,1.5,0.1,Iris-setosa |
This file contains hidden or 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
| //--------Início--------// | |
| int saidaA; | |
| bool chave = true; | |
| void setup() { | |
| Serial.begin(9600); | |
| } |
NewerOlder