Skip to content

Instantly share code, notes, and snippets.

Ehsan Azar dashesy

Block or report user

Report or block dashesy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View test_nccl.c
// Code from
#define _BSD_SOURCE
#include <stdio.h>
#include "cuda_runtime.h"
#include "nccl.h"
#include "mpi.h"
#include <stdint.h>
#include <stdlib.h>
dashesy / ipython-notebook.service
Created Oct 8, 2015 — forked from amitsaha/ipython-notebook.service
Run IPython notebook under systemd
View ipython-notebook.service
# Copy this file to /usr/lib/systemd/system/
# sudo systemctl daemon-reload
# systemctl enable ipython-notebook
# systemctl start ipython-notebook
# The WorkingDirectory and ipython-dir must exist
# If you don't want anything fancy, go to to see your notebook
# wheneber you want it
dashesy /
Last active Dec 19, 2015
Joint classifier inspired by FeatureUnion
Created on June 26, 2013
@author: dashesy
Purpose: Like FeatureUnion but can apply different X,y to different transformers
Each transformer could accept different number os samples or features
but the result should be concatenatable
dashesy /
Created Jun 28, 2013
Joint classifier for FeatureUnion in the pipeline
Created on June 26, 2013
@author: dashesy
Purpose: glue the classifier wire logic to have multiple
classifiers work jointly with different groups of X,y
Each group could accept different number os samples or features
dashesy /
Created May 27, 2013
KernelPCA with callable kernel
"""Kernel Principal Components Analysis"""
# Author: Mathieu Blondel <>
# License: BSD Style.
import numpy as np
from scipy import linalg
from ..utils.arpack import eigsh
from ..base import BaseEstimator, TransformerMixin
dashesy / gist:5577051
Last active Dec 17, 2015
sklearn GMM suitable for prediction at the last stage of pipeline
View gist:5577051
Gaussian Mixture Models.
This implementation corresponds to frequentist (non-Bayesian) formulation
of Gaussian Mixture Models.
# Author: Ron Weiss <>
# Fabian Pedregosa <>
# Bertrand Thirion <>
You can’t perform that action at this time.