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
input: "data" | |
input_dim: 1 | |
input_dim: 3 | |
input_dim: 256 | |
input_dim: 512 | |
layer { | |
name: "pool" | |
type: "Pooling" | |
bottom: "data" | |
top: "pool" |
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
from skimage.segmentation import slic | |
from skimage.segmentation import mark_boundaries | |
import matplotlib.pyplot as plt | |
segments = slic(img, n_segments = 500, sigma = 5) | |
plt.imshow(mark_boundaries(imgs, segments)) |
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
if step_to_the_left or step_to_the_right: | |
rasstrel() |
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
from sklearn.ensemble import RandomForestRegressor | |
from sklearn.datasets import * | |
from sklearn.metrics import mean_absolute_error | |
from sklearn.cross_validation import train_test_split | |
data = load_boston() | |
X = data['data'] | |
y = data['target'] | |
train_x, test_x, train_y, test_y = train_test_split(X, y, test_size=0.2) |
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
synclient TouchpadOff=1 |