Skip to content

Instantly share code, notes, and snippets.

View vsocrates's full-sized avatar

Vimig Socrates vsocrates

View GitHub Profile
@vsocrates
vsocrates / git-lfs-install.md
Last active March 6, 2024 05:26 — forked from pourmand1376/git-lfs-install.md
Single User Installation of Git-LFS without sudo

I wanted to install GIT-Lfs on my user account without access to server root account. I write this to my future self.

  1. Download tar.gz file from git-lfs website.
wget https://github.com/git-lfs/git-lfs/releases/download/v3.2.0/git-lfs-linux-amd64-v3.2.0.tar.gz

2.Untar it

tar xvf git-lfs-linux-amd64-v3.2.0.tar.gz
@vsocrates
vsocrates / stateful_recall.py
Created July 19, 2018 00:02
Keras Stateful Custom Metric Recall
class Recall(keras.layers.Layer):
"""Stateful Metric to count the total recall over all batches.
Assumes predictions and targets of shape `(samples, 1)`.
# Arguments
name: String, name for the metric.
"""
def __init__(self, name='recall', **kwargs):
@vsocrates
vsocrates / graph.json
Created May 21, 2017 08:39 — forked from eyaler/graph.json
Force-Directed Graph with Drag/Zoom/Pan/Center/Resize/Labels/Shapes/Filter/Highlight
{
"graph": [],
"links": [
{"source": 0, "target": 1},
{"source": 0, "target": 2},
{"source": 0, "target": 3},
{"source": 0, "target": 4},
{"source": 0, "target": 5},
{"source": 0, "target": 6},
{"source": 1, "target": 3},