Skip to content

Instantly share code, notes, and snippets.

View iuga's full-sized avatar

Esteban Del Boca iuga

  • Bluecore
  • Córdoba, Argentina
View GitHub Profile
<script src="https://api.labelbox.com/static/labeling-api.js"></script>
<div id="form"></div>
<script>
function label(label){
Labelbox.setLabelForAsset(label).then(() => {
Labelbox.fetchNextAssetToLabel();
});
}
Labelbox.currentAsset().subscribe((asset) => {
@iuga
iuga / backpropagation.py
Last active February 5, 2017 14:46
Entering Gradient Descent Step
# Defining the sigmoid function for activations
def sigmoid(x):
return 1/(1+np.exp(-x))
# Derivative of the sigmoid function
def sigmoid_prime(x):
return sigmoid(x) * (1 - sigmoid(x))
x = np.array([0.1, 0.3])
y = 0.2
@iuga
iuga / install-tensorflow.sh
Created February 12, 2016 20:35 — forked from erikbern/install-tensorflow.sh
Installing TensorFlow on EC2
# Note – this is not a bash script (some of the steps require reboot)
# I named it .sh just so Github does correct syntax highlighting.
#
# This is also available as an AMI in us-east-1 (virginia): ami-cf5028a5
#
# The CUDA part is mostly based on this excellent blog post:
# http://tleyden.github.io/blog/2014/10/25/cuda-6-dot-5-on-aws-gpu-instance-running-ubuntu-14-dot-04/
# Install various packages
sudo apt-get update
@iuga
iuga / get_media_per_customer.py
Created October 28, 2015 14:58
Python: Get total media per customer
def get_media_count_by_customer(self, customer_id):
"""
Get the media OK count by customer for all the active customers
Query:
SELECT customer_id, status, COUNT(id) FROM pr_medias GROUP BY customer_id, status HAVING status = 'OK'
:return: Customer List
"""
with self.olapic_dao.create_session() as session:
return session.query(
Media.customer_id, Media.status, func.count(Media.id)
  1. General Background and Overview