dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
wsl --set-default-version 2
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| #-*- coding:utf-8 - *- | |
| def load_dataset(): | |
| "Load the sample dataset." | |
| return [[1, 3, 4], [2, 3, 5], [1, 2, 3, 5], [2, 5]] | |
| def createC1(dataset): | |
| "Create a list of candidate item sets of size one." |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 reusables | |
| @reusables.time_it() | |
| def test_lbyl(messages): | |
| out = [] | |
| for _ in range(10000): | |
| if messages and messages[0] and len(messages[0]) >= 3: | |
| out.append(messages[0][2]) | |
| return 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
| #-------------------------- | |
| # USER-SPECIFIED DATA | |
| #-------------------------- | |
| # Tune these parameters | |
| num_classes = 2 | |
| image_shape = (160, 576) | |
| EPOCHS = 40 | |
| BATCH_SIZE = 16 |
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
| library(checkpoint) | |
| checkpoint("2018-02-25") | |
| library(ggplot2) | |
| # number of people | |
| N <- 1000 | |
| # probability of event interception | |
| P_E <- 0.075 | |
| # probability of lucky event | |
| P_L <- 0.5 |
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
| class TemporalConvNet(tf.layers.Layer): | |
| def __init__(self, num_channels, kernel_size=2, dropout=0.2, | |
| trainable=True, name=None, dtype=None, | |
| activity_regularizer=None, **kwargs): | |
| super(TemporalConvNet, self).__init__( | |
| trainable=trainable, dtype=dtype, | |
| activity_regularizer=activity_regularizer, | |
| name=name, **kwargs | |
| ) | |
| self.layers = [] |
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
| tf.reset_default_graph() | |
| graph = tf.Graph() | |
| with graph.as_default(): | |
| tf.set_random_seed(10) | |
| # tf Graph input | |
| X = tf.placeholder("float", [None, timesteps, num_input]) | |
| Y = tf.placeholder("float", [None, num_classes]) | |
| is_training = tf.placeholder("bool") | |
| # Define weights |
Basics:
Tutorial:
NewerOlder