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
javaw [-options] class [args...] | |
(to execute a class) | |
or javaw [-options] -jar jarfile [args...] | |
(to execute a jar file) | |
where options include: | |
-client to select the "client" VM | |
-server to select the "server" VM | |
-hotspot is a synonym for the "client" VM [deprecated] | |
The default VM is client. |
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
function getImages() | |
%Puts images into matrices | |
% randomise weights | |
% Until total error < (0.1?) or you can do it until the validation set has a low error | |
% repeat for each letter | |
% apply first letter | |
% calculate error and make positive | |
% add first letter to total error | |
% change weight | |
%repeat |
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 java.util.Scanner; | |
public class Solution { | |
public static void main(String[] args){ | |
Solution x = new Solution(); | |
int[] A = {-7,1,5,2,-4,3,0}; | |
System.out.println(x.solution(A)); | |
} |
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
acm | |
siteseerx | |
research gate |
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
check = as.factor(groups) | |
#fit tree model with training data | |
tree_model = tree(check~., training_data) | |
plot(tree_model) | |
text(tree_model, pretty=0) | |
#model precision check | |
tree_pred = predict(tree_model, testing_data, type="class") |
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
Removed comments for dissertation. | |
dataSmall <- read.delim("//Users//jamie//Programming//R//Dissertation//SmallData.out", row.names = 1) | |
dataBig <- read.delim("//Users//jamie//Programming//R//Dissertation//LargeData.tab", row.names = 1) | |
dataComplete <- merge(dataSmall,dataBig,by="row.names") | |
dataComplete[1]<-NULL |
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
d = dist(cl, method = "euclidean") | |
fit = hclust(d, method = "ward") | |
plot(fit, labels=rownames(d), xaxt = "n") | |
groups = cutree(fit, k=3) | |
x = rect.hclust(fit, k=3, border="red", cluster = groups) |
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
$n | |
[1] 573 | |
$cluster.number | |
[1] 3 | |
$cluster.size | |
[1] 112 310 151 | |
$min.cluster.size |
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://www.youtube.com/watch?v=byeqpfBUyaU |
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
# Pi2Go Motor Test | |
# Moves: Forward, Reverse, turn Right, turn Left, Stop - then repeat | |
# Press Ctrl-C to stop | |
# | |
# Also demonstrates writing to the LEDs | |
# | |
# To check wiring is correct ensure the order of movement as above is correct | |
# Run using: sudo python motorTest.py | |
import pi2go, time |
OlderNewer