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
"$edgeHub": { | |
"properties.desired": { | |
"schemaVersion": "1.0", | |
"routes": { | |
"DeepstreamToIoTHub": "FROM /messages/modules/NVIDIADeepStreamSDK/outputs/* INTO $upstream" | |
}, | |
"storeAndForwardConfiguration": { | |
"timeToLiveSecs": 7200 | |
} | |
} |
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
"systemModules": { | |
"edgeAgent": { | |
"type": "docker", | |
"settings": { | |
"image": "mcr.microsoft.com/azureiotedge-agent:1.0", | |
"createOptions": {} | |
} | |
}, | |
"edgeHub": { | |
"type": "docker", |
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
"NVIDIADeepStreamSDK": { | |
"version": "1.0", | |
"type": "docker", | |
"status": "running", | |
"restartPolicy": "always", | |
"settings": { | |
"image": "marketplace.azurecr.io/nvidia/deepstream-iot2-l4t:latest", | |
"createOptions": { | |
"HostConfig": { | |
"runtime": "nvidia" |
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 numpy as np | |
import pandas as pd | |
import pyflux as pf | |
from datetime import datetime | |
import matplotlib.pyplot as plt | |
%matplotlib inline | |
data = pd.read_csv('https://vincentarelbundock.github.io/Rdatasets/csv/datasets/sunspot.year.csv') | |
data.index = data['time'].values |
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
いい夢見ろよ😴的な? 笑 さっ風呂入ろ ♨ ️ | |
南港に沈めたら解決 | |
チロルチョコ | |
: |
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
J(\theta) = \frac{1}{2}\sum^{W}_{i,j=1}f(P_{ij})(u^{T}_{i}v_j - \log{P_(ij)})^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
TensorBoard(log_dir=log_dir, | |
histogram_freq=1, | |
write_grads=True, | |
write_images=1, | |
embeddings_freq=1, | |
embeddings_layer_names=layer_name, | |
embeddings_metadata=metadata_file | |
) |
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
Z^l = tanh(W^{l}_z*X^l+V^{l}_z\tilde{h}^{l}_T) \\ | |
F^l = \sigma(W^{l}_f*X^l+V^{l}_f\tilde{h}^{l}_T) \\ | |
O^l = \sigma(W^{l}_o*X^l+V^{l}_o\tilde{h}^{l}_T) \\ |
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
class Conv2d_BatchNorm(nn.Module): | |
def __init__(self, in_channels, out_channels, kernel_size, stride=1, relu=True, same_padding=False): | |
super(Conv2d_BatchNorm, self).__init__() | |
padding = int((kernel_size - 1) / 2) if same_padding else 0 | |
self.conv = nn.Conv2d(in_channels, out_channels, kernel_size, stride, padding=padding, bias=False) | |
self.bn = nn.BatchNorm2d(out_channels, momentum=0.01) | |
self.relu = nn.LeakyReLU(0.1, inplace=True) if relu else None | |
def forward(self, x): |
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
pip install git+https://github.com/fchollet/keras.git |
NewerOlder