def plot_loss(history: keras.callbacks.History, xlabel: str = None, ylabel: str = None, ylim: list = None):
plt.plot(history.history['loss'], label='loss')
plt.plot(history.history['val_loss'], label='val_loss')
plt.ylim(ylim)
plt.xlabel(xlabel)
plt.ylabel(ylabel)
plt.legend()
plt.grid(True)
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
/** | |
* Copyright 2018 Google Inc. All Rights Reserved. | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* Unless required by applicable law or agreed to in writing, software | |
* distributed under the License is distributed on an "AS IS" BASIS, | |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
* See the License for the specific language governing permissions and |
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
Show hidden characters
{ | |
"presets": [ | |
[ | |
"next/babel", | |
{ | |
"styled-jsx": { | |
"plugins": [ | |
"styled-jsx-plugin-postcss" | |
] | |
} |
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
/** @namespace */ | |
var THREEg = THREEg || {} | |
THREEg.CameraReporter = function (){ | |
var msMin = 100; | |
var msMax = 0; | |
var container = document.createElement( 'div' ); |
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
/** @namespace */ | |
var THREEg = THREEg || {} | |
THREEg.OrbitReporter = function (){ | |
var msMin = 100; | |
var msMax = 0; | |
var container = document.createElement( 'div' ); |
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
/** | |
* @author qiao / https://github.com/qiao | |
* @author mrdoob / http://mrdoob.com | |
* @author alteredq / http://alteredqualia.com/ | |
* @author WestLangley / http://github.com/WestLangley | |
* @author erich666 / http://erichaines.com | |
*/ | |
// This set of controls performs orbiting, dollying (zooming), and panning. |
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
// I have two scenes and I clear depth to handle visibility matter | |
animate(){ | |
requestAnimationFrame( this._animate.bind(this) ); | |
this._renderer.clear(); | |
this._renderer.render( this._scene, this._camera ); | |
this._renderer.clearDepth(); | |
this._renderer.render( this._scene2, this._camera ); | |
} |
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
source "https://rubygems.org" | |
ruby '2.1.2' | |
gem 'dwolla_v2', '~> 0.4' |
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
source "https://rubygems.org" | |
ruby "2.1.2" | |
gem 'dwolla_v2', '~> 0.4' | |
gem 'dwolla_swagger', '~>1.0.0' | |
gem 'faker' | |
gem 'httparty' |
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
require 'dwolla_swagger' | |
require 'faker' | |
DwollaSwagger::Swagger.configure do |config| | |
config.host = 'api-uat.dwolla.com' | |
config.access_token = ENV['DWOLLA_UAT_ACCESS_TOKEN'] | |
end | |
# B |
NewerOlder