opis pliku
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
The MIT License | |
Copyright (c) 2015 Hawker | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
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 RPi.GPIO as GPIO | |
import time | |
from datetime import datetime | |
def bin2dec(string_num): # define a function to convert a binary number to a decimal. | |
return str(int(string_num, 2)) # return the string representing the integer value of the string passed to this function in base 2 (binary) | |
class Sensor(object): | |
def __init__(self): |
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
trafficpermonth <- read.csv("C:/Users/hawker/Desktop/studia/szeregi/lab4/trafficpermonth.txt", sep="") | |
traffic <- ts(trafficpermonth["x"],start=c(1993,1),freq=12) | |
#1a | |
dec_traffic <- decompose(traffic) | |
plot(dec_traffic) | |
#1b | |
subset_traffic <- window(traffic, c(1996,1), c(2001,8)) |
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 "logger.hpp" | |
Logger::Logger(double *x, | |
double *y, | |
double *total_distance, | |
int n, | |
std::string datapath_hist, | |
std::string datapath_time) | |
:x(x), | |
y(y), |
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
MEM "plik.mem" | |
dac_config DSIO $40 | |
dac_data DSIN $41 | |
data_swap equ S0 | |
opoznij_1u_const EQU 11 | |
reg_1m equ S1 | |
reg_1u equ S2 | |
const_reg_swap equ S3 | |
data_var equ S4 | |
dac_data_var equ S5 |
##Jak odpalić pycuda/theano na zeusie
- Tworzymy konto na plgrid z dostpem do tzw/ gpgpu (taka rzecz na zeusie co pozwala nam odpalać rzeczy na gpu).
- Logujemy sie przez ssh na ui.cyfronet.pl z loginem takim jak do konta naplgrid i haslo podajemy takie jak mamy do plgrid
- Musimy najpierw wejsc w kolejke do gpu poprzez
qsub -I -q gpgpu -l nodes=1:ppn=1:gpus=1
(dziki temu zyskujemy dostep do takich programow jak kompilator cudy czy pycuda) - To w zasadzie tyle, thano i pycuda sa juz domyslnie zainstalowane razem z pythonem 2.7.6, o ile sie nie myle. Jesli potrzebujecie jakiejs innej aplikacji/albo wersji python to poszukajcie tutaj https://aplikacje.plgrid.pl/ i wpiszcie
module add sciezka/do/modulu
- uzywamy
qdel
zeby usunac sie z kolejki po zakonczeniu roboty (ważne)
##Jak odpalić nvcc na zeusie
- Tworzymy konto na plgrid z dostpem do tzw/ gpgpu (taka rzecz na zeusie co pozwala nam odpalać rzeczy na gpu).
- Logujemy sie przez ssh na ui.cyfronet.pl z loginem takim jak do konta naplgrid i haslo
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
## created by Hawker (https://github.com/hawkerpl) | |
## inspired by https://github.com/SmokinCaterpillar/pypet | |
## | |
import itertools | |
def cartesian_generator(somedict): | |
values = somedict.values() | |
keys = somedict.keys() | |
for line in itertools.product(*values): | |
yield dict(zip(keys,line)) |
##VGG16 model for Keras (with skimage/scikit-image instead of opencv)
This is the Keras model of the 16-layer network used by the VGG team in the ILSVRC-2014 competition.
It has been obtained by directly converting the Caffe model provived by the authors.
Details about the network architecture can be found in the following arXiv paper:
Very Deep Convolutional Networks for Large-Scale Image Recognition
K. Simonyan, A. Zisserman
Example of transfer learning taken from https://gist.github.com/baraldilorenzo/07d7802847aaad0a35d3
OlderNewer