Skip to content

Instantly share code, notes, and snippets.

View mathemage's full-sized avatar
:octocat:
Contributing irregularly

Karel Ha mathemage

:octocat:
Contributing irregularly
View GitHub Profile
/usr/bin/env bash /home/mathemage/deep-learning-mff-uk-2018-summer-semester/labs/02/run_mnist_training_configurations.sh
/usr/bin/python3 /home/mathemage/deep-learning-mff-uk-2018-summer-semester/labs/02/mnist_training.py --optimizer SGD --learning_rate 0.01
2018-03-16 11:43:21.639779: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA
2018-03-16 11:43:21.731973: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:895] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2018-03-16 11:43:21.732191: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1105] Found device 0 with properties:
name: GeForce GTX 1050 major: 6 minor: 1 memoryClockRate(GHz): 1.493
pciBusID: 0000:01:00.0
totalMemory: 3.95GiB freeMemory: 2.87GiB
2018-03-16 11:43:21.732202: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1195] Creating TensorFl
mnist_layers_activations.py --layers 0 --activation none
91.85
mnist_layers_activations.py --layers 1 --activation none
92.40
mnist_layers_activations.py --layers 1 --activation sigmoid
92.43
mnist_layers_activations.py --layers 1 --activation tanh
@mathemage
mathemage / tree_cfr.lua
Created January 9, 2018 14:03
DS-Leduc tree cfr
--- Runs Counterfactual Regret Minimization (CFR) to approximately
-- solve a game represented by a complete game tree.
--
-- As this class does full solving from the root of the game with no
-- limited lookahead, it is not used in continual re-solving. It is provided
-- simply for convenience.
-- @classmod tree_cfr
local arguments = require 'Settings.arguments'
local constants = require 'Settings.constants'
@mathemage
mathemage / tree_builder.lua
Created January 6, 2018 16:28
missing case of call_is_transit
--- Builds a public tree for Leduc Hold'em or variants.
--
-- Each node of the tree contains the following fields:
--
-- * `node_type`: an element of @{constants.node_types} (if applicable)
--
-- * `street`: the current betting round
--
-- * `board`: a possibly empty vector of board cards
--
@mathemage
mathemage / PCA_DAAL_SVD_DenseBatch.java
Created September 29, 2017 11:15
PCA_DAAL_SVD_DenseBatch
package hex.pca.daal;
import com.intel.daal.algorithms.pca.*;
import com.intel.daal.data_management.data.NumericTable;
import com.intel.daal.data_management.data_source.DataSource;
import com.intel.daal.data_management.data_source.FileDataSource;
import com.intel.daal.services.DaalContext;
import hex.pca.PCAInterface;
import java.io.IOException;
@mathemage
mathemage / PCAWideDataSets_Jama_fail.java
Created September 4, 2017 11:00
Failure of PCAWideDataSets with modularizing PCA implemenations
09-04 12:36:17.107 10.76.97.34:54321 23078 main INFO: pcaParameters._PCAImplementation: JAMA
09-04 12:36:17.109 10.76.97.34:54321 23078 main INFO: ParseSetup heuristic: cloudSize: 1, cores: 4, numCols: 13, maxLineLength: 74, totalSize: 3074, localParseSize: 3074, chunkSize: 4194304, numChunks: 1, numChunks * cols: 13
09-04 12:36:17.109 10.76.97.34:54321 23078 main INFO: Total file size: 3,0 KB
09-04 12:36:17.109 10.76.97.34:54321 23078 main INFO: Parse chunk size 4194304
09-04 12:36:17.111 10.76.97.34:54321 23078 FJ-1-3 INFO: Parse result for smalldata/pca_test/decathlon.csv (41 rows):
09-04 12:36:17.113 10.76.97.34:54321 23078 FJ-1-3 INFO: ColV2 type min max mean sigma NAs constant cardinality
09-04 12:36:17.113 10.76.97.34:54321 23078 FJ-1-3 INFO: 100m: numeric 10,4400 11,6400 10,9980 0,263023
09-04 12:36:17.113 10.76.97.34:54321 23078
08-05 07:20:05.952 172.17.2.208:44006 5228 main ERRR: water.exceptions.H2ONotFoundArgumentException: Resource /Cloud.json not found
08-05 07:20:05.952 172.17.2.208:44006 5228 main ERRR: at water.api.RequestServer.response404(RequestServer.java:663)
08-05 07:20:05.952 172.17.2.208:44006 5228 main ERRR: at water.api.RequestServer.getResource(RequestServer.java:877)
08-05 07:20:05.952 172.17.2.208:44006 5228 main ERRR: at water.api.RequestServer.serve(RequestServer.java:443)
08-05 07:20:05.952 172.17.2.208:44006 5228 main ERRR: at hex.AAA_PreCloudLock.serve(AAA_PreCloudLock.java:93)
08-05 07:20:05.952 172.17.2.208:44006 5228 main ERRR: at hex.AAA_PreCloudLock.testBasicStatusPages(AAA_PreCloudLock.java:50)
08-05 07:20:05.952 172.17.2.208:44006 5228 main ERRR: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
08-05 07:20:05.952 172.17.2.208:44006 5228 main ERRR: at sun.reflect.NativeMethodAccessorImpl.invoke(Nativ
@mathemage
mathemage / PCATest.java
Created May 8, 2017 22:11
new JUnit fail
05-08 23:37:29.350 10.76.97.14:54321 6224 main INFO: ParseSetup heuristic: cloudSize: 1, cores: 4, numCols: 4, maxLineLength: 36, totalSize: 812, localParseSize: 812, chunkSize: 4194304, numChunks: 1, numChunks * cols: 4
05-08 23:37:29.350 10.76.97.14:54321 6224 main INFO: Total file size: 812 B
05-08 23:37:29.351 10.76.97.14:54321 6224 main INFO: Parse chunk size 4194304
05-08 23:37:29.353 10.76.97.14:54321 6224 FJ-1-7 INFO: Parse result for arrests.hex (50 rows):
05-08 23:37:29.354 10.76.97.14:54321 6224 FJ-1-7 INFO: ColV2 type min max mean sigma NAs constant cardinality
05-08 23:37:29.355 10.76.97.14:54321 6224 FJ-1-7 INFO: Murder: numeric 0.800000 17.4000 7.78800 4.35551
05-08 23:37:29.355 10.76.97.14:54321 6224 FJ-1-7 INFO: Assault: numeric 45.0000 337.000 170.760 83.3377
05-08 23:37:29.35
@mathemage
mathemage / PCATest.java
Created May 4, 2017 09:29
JUnit test failing EVD_MTJ_DenseMatrix
05-04 11:08:30.809 192.168.1.15:54321 21605 main INFO: ParseSetup heuristic: cloudSize: 1, cores: 4, numCols: 4, maxLineLength: 36, totalSize: 812, localParseSize: 812, chunkSize: 4194304, numChunks: 1, numChunks * cols: 4
05-04 11:08:30.809 192.168.1.15:54321 21605 main INFO: Total file size: 812 B
05-04 11:08:30.809 192.168.1.15:54321 21605 main INFO: Parse chunk size 4194304
05-04 11:08:30.811 192.168.1.15:54321 21605 FJ-1-7 INFO: Parse result for arrests.hex (50 rows):
05-04 11:08:30.813 192.168.1.15:54321 21605 FJ-1-7 INFO: ColV2 type min max mean sigma NAs constant cardinality
05-04 11:08:30.814 192.168.1.15:54321 21605 FJ-1-7 INFO: Murder: numeric 0.800000 17.4000 7.78800 4.35551
05-04 11:08:30.814 192.168.1.15:54321 21605 FJ-1-7 INFO: Assault: numeric 45.0000 337.000 170.760 83.3377
05-04 11:08:30.81
@mathemage
mathemage / EVD_MTJ_DenseMatrix.java
Created May 4, 2017 09:18
singular values and right eigenvectors out of eigenvalue decomposition (EVD)
package hex.pca;
import hex.util.LinearAlgebraUtils;
import no.uib.cipr.matrix.DenseMatrix;
import no.uib.cipr.matrix.NotConvergedException;
/**
* @author mathemage </ha@h2o.ai>
* @date 1.5.17
*/