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
<div class="toolbar" role="banner"> | |
<img | |
width="55" | |
src="https://i.imgur.com/WQKir0M.png" | |
/> | |
<span>Tensorflow.js and Angular Integration</span> | |
<div class="spacer"></div> | |
</div> | |
<h2> | |
{{title}} |
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 __future__ import print_function, division | |
import numpy as np | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
# Keras modules | |
from tensorflow.keras.layers import Input, Dense, Reshape, Flatten, Dropout, BatchNormalization, Activation, ZeroPadding2D, LeakyReLU, UpSampling2D, Conv2D | |
from tensorflow.keras.models import Sequential, Model | |
from tensorflow.keras.optimizers import Adam |
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
public class SimpleNeuralNetwork | |
{ | |
private NeuralLayerFactory _layerFactory; | |
internal List<NeuralLayer> _layers; | |
internal double _learningRate; | |
internal double[][] _expectedResult; | |
/// <summary> | |
/// Constructor of the Neural Network. |
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 os | |
import numpy as np | |
from glob import glob | |
import scipy | |
import matplotlib.pyplot as plt | |
class ImageHelper(object): | |
def save_image(self, plot_images, epoch): | |
os.makedirs('cycle_gan_images', exist_ok=True) | |
titles = ['Original', 'Transformed'] |
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
public class TestClass | |
{ | |
public int Id { get; set; } | |
} |
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
[Fact] | |
public void Add_TestClassObjectPassed_ProperMethodCalled() | |
{ | |
// Arrange | |
var testObject = new TestClass(); | |
var context = new Mock<DbContext>(); | |
var dbSetMock = new Mock<DbSet<TestClass>>(); | |
context.Setup(x => x.Set<TestClass>()).Returns(dbSetMock.Object); | |
dbSetMock.Setup(x => x.Add(It.IsAny<TestClass>())).Returns(testObject); |
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 DataSetCreator(object): | |
def __init__(self, batch_size, image_height, image_width, dataset): | |
self.batch_size = batch_size | |
self.image_height = image_height | |
self.image_width = image_width | |
self.dataset = dataset | |
def _get_class(self, path): | |
pat_splited = tf.strings.split(path, os.path.sep) | |
return pat_splited[-2] == CLASS_NAMES |
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
""" | |
Usage: analyse_data.py --company=<company> | |
""" | |
import warnings | |
import logging | |
import itertools | |
import pandas as pd | |
import numpy as np | |
import matplotlib.pyplot as plt | |
from hmmlearn.hmm import GaussianHMM |
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
using System; | |
using SOM.NeuronNamespace; | |
using SOM.VectorNamespace; | |
namespace SOM | |
{ | |
public class SOMap | |
{ | |
internal INeuron[,] _matrix; | |
internal int _height; |
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
tfds.core.DatasetInfo( | |
name='ted_hrlr_translate', | |
version=0.0.1, | |
description='Data sets derived from TED talk transcripts for comparing similar language pairs | |
where one is high resource and the other is low resource. | |
', | |
urls=['https://github.com/neulab/word-embeddings-for-nmt'], | |
features=Translation({ | |
'en': Text(shape=(), dtype=tf.string), | |
'ru': Text(shape=(), dtype=tf.string), |
NewerOlder