Skip to content

Instantly share code, notes, and snippets.

View danieljue's full-sized avatar
💭
I may be slow to respond.

Daniel Jue danieljue

💭
I may be slow to respond.
View GitHub Profile
@stefanonardo
stefanonardo / early_stopping.py
Last active February 28, 2024 19:21
Early Stopping PyTorch
# MIT License
#
# Copyright (c) 2018 Stefano Nardo https://gist.github.com/stefanonardo
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@Hendler
Hendler / cuda_aws_ubuntu_theano_tensorflow_nlp.md
Last active July 4, 2021 10:06
Installing the best Natural Language Processing Python machine learning tools on an Ubuntu GPU instance

Awesome NLP on AWS GPU

Tech:

  • Ubuntu
  • Nvidia Cuda
  • Python
  • Theano
  • TensorFlow
  • Keras
@omalley
omalley / OrcWriter.java
Created November 24, 2015 19:00
A sample ORC writer using a dynamic schema
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.Text;
@stephenmelrose
stephenmelrose / structure.md
Created September 25, 2015 15:26
Docker folder structure

I generally have Docker related stuff in a subfolder in my repo. In the example below, all the code is sat in the root, but you could equally put all the code in a subfolder as well.

<repo_folder>
    code/
    more_code/
    docker/
        bin/
            setup.sh
 nginx/