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
graph = tf.Graph() | |
with graph.as_default(): | |
with graph.device('/gpu:0'): | |
# input data | |
train_dataset = tf.placeholder(tf.int32, shape=[batch_size]) | |
train_labels = tf.placeholder(tf.int32, shape=[batch_size, 1]) | |
valid_dataset = tf.constant(valid_examples, dtype=tf.int32) | |
# variables |
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
package mlp.rus; | |
import java.util.Arrays; | |
import java.util.Comparator; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.Map.Entry; | |
import com.google.common.collect.ImmutableMap; | |
import com.google.common.collect.Lists; |
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
/** | |
* SyntaxHighlighter | |
* http://alexgorbatchev.com/SyntaxHighlighter | |
* | |
* SyntaxHighlighter is donationware. If you are using it, please donate. | |
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html | |
* | |
* @version | |
* 3.0.83 (July 02 2010) | |
* |
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
install.packages('hflights', 'entropy') | |
library(hflights) | |
library(entropy) | |
sample.size = 10000 | |
reps = 5000 | |
mean(hflights$ArrDelay, na.rm=T) |
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
DATE,VALUE | |
2004-08-04,. | |
2004-08-05,-17.93 | |
2004-08-06,-16.73 | |
2004-08-09,1.25 | |
2004-08-10,13.82 | |
2004-08-11,-3.25 | |
2004-08-12,-12.56 | |
2004-08-13,1.57 | |
2004-08-16,14.54 |
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
$wgHooks['MediaWikiPerformAction'][] = 'wfActionMultipleArticles'; | |
function wfActionMultipleArticles($output, $article, $title, $user, $request, $wiki) { | |
$action = $request->getText('action', 'view'); | |
if ($action != 'multi') { | |
return 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
import java.io.*; | |
import javax.sound.sampled.*; | |
import org.apache.commons.lang3.Validate; | |
import com.google.common.base.Throwables; | |
/** | |
* @author Alexey Grigorev | |
*/ | |
public class AudioFileReader implements Closeable { |
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
package graph; | |
import java.util.*; | |
import com.google.common.collect.*; | |
/** | |
* @author Alexey Grigorev | |
*/ | |
public class Graph { |
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
package optimization.vrp; | |
import java.awt.Color; | |
import java.io.IOException; | |
import java.util.Iterator; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.Random; | |
import org.w3c.dom.Document; |