Skip to content

Instantly share code, notes, and snippets.

View sergeyk's full-sized avatar

Sergey Karayev sergeyk

View GitHub Profile
@sergeyk
sergeyk / lmdb.rb
Last active August 29, 2015 14:01
require 'formula'
class Lmdb < Formula
homepage 'http://symas.com/mdb/'
url 'https://gitorious.org/mdb/mdb/archive/LMDB_0.9.11.tar.gz'
sha1 '8015de70514e8b437b4bc43718a7034101efdc67'
head 'git://git.openldap.org/openldap.git', :branch => 'mdb.master'
def install
[ OK ] ThresholdLayerTest/1.TestGPU2 (0 ms)
[----------] 5 tests from ThresholdLayerTest/1 (1 ms total)
[----------] 3 tests from MultiLabelAccuracyLayerTest/0, where TypeParam = float
[ RUN ] MultiLabelAccuracyLayerTest/0.TestWithHalfZeros
src/caffe/test/test_multi_label_accuracy_layer.cpp:113: Failure
The difference between reference_loss and layer_loss is 1.8095757961273193, which exceeds eps, where
reference_loss evaluates to 1.8095757961273193,
layer_loss evaluates to 0, and
eps evaluates to 0.019999999552965164.
@sergeyk
sergeyk / gene_correlations.ipynb
Last active December 11, 2015 20:19
Plotting some (outdated) art genome gene correlation data for Leonard.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file has been truncated, but you can view the full file.
{
"metadata": {
"name": "imagenet2"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sergeyk
sergeyk / plotting_ilsvrc65.py
Created April 17, 2013 18:38
plotting ilsvrc65
# assumes there is a dictionary that has keys
# 'g': the nx.DiGraph graph
# 'nodes': list of node names
# 'heights': list of integer heights of the nodes
fig = plt.figure()
ax = fig.add_subplot(111)
g = graph['g']
nodes = graph['nodes']
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{