Skip to content

Instantly share code, notes, and snippets.

@sujee
sujee / cnn-mnist-1-train-gpu-minimal.py
Last active April 2, 2023 13:20
CNN model for mnist prediciton -- tweaked for Tensorflow2 GPU edition
#!/usr/bin/env python
## This CNN network to identify MNIST dataset
import time
import random
import numpy as np
from pprint import pprint
import os, sys
@Ogaday
Ogaday / README.md
Last active August 7, 2022 13:33
Prefect on Dask on Kubernetes
@dariosky
dariosky / dropbox_wise_ignore.py
Last active February 17, 2023 19:30
A Python script to be run in a Dropbox folder - so it exclude all the node_modules and __pycache__ folders - we want them locally but not in the cloud
#!/usr/bin/env python3
import argparse
import os
import shutil
from xattr import xattr
top_folder = "."
CACHE_FOLDERS = {"__pycache__", ".pytest_cache", ".cache"}
# Now available here: https://github.com/y0ast/pytorch-snippets/tree/main/minimal_cifar
@bradtraversy
bradtraversy / mongodb_cheat_sheet.md
Last active November 15, 2024 10:00
MongoDB Cheat Sheet

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

@shaybensasson
shaybensasson / PyCharm Tips and Tricks.ipynb
Last active September 6, 2018 08:32
PyCharm Tips and Tricks.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@shaybensasson
shaybensasson / Versions of everything.ipynb
Last active September 15, 2018 17:50
Versions of everything - to compare two environments
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@shaybensasson
shaybensasson / mnist_nlp_seed.py
Last active June 14, 2017 08:47
trying keras to be random seeded (with theano and/or tf)
'''
trying keras to be random seeded
Switch backends by changin ~/.keras/keras.json:
Theano: https://drive.google.com/open?id=0B-FcStylmYuVU1E5S25QX2JXcGs
TensorFlow: https://drive.google.com/open?id=0B-FcStylmYuVNnpfZERoeUo0QnM
Keras Backend:
*Theano (1 epoch, GPU):
Test loss: 0.111780489241