Skip to content

Instantly share code, notes, and snippets.

View priya-gitTest's full-sized avatar

Priyanka O priya-gitTest

View GitHub Profile
@priya-gitTest
priya-gitTest / wikipedia_data_map.ipynb
Created June 24, 2025 18:28 — forked from lmcinnes/wikipedia_data_map.ipynb
Interactive Data Map of Wikipedia
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@priya-gitTest
priya-gitTest / docker-wsl2.md
Created June 6, 2024 11:16 — forked from martinsam16/docker-wsl2.md
How to install wsl2 ubuntu + docker + docker-compose

Activate wsl2

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
wsl --set-default-version 2

Install and Configure Ubuntu

#-*- coding:utf-8 - *-
def load_dataset():
"Load the sample dataset."
return [[1, 3, 4], [2, 3, 5], [1, 2, 3, 5], [2, 5]]
def createC1(dataset):
"Create a list of candidate item sets of size one."
@priya-gitTest
priya-gitTest / lung_cancer_market_basket.ipynb
Created June 27, 2018 07:54 — forked from sujitpal/lung_cancer_market_basket.ipynb
Using Market Basket (Apriori) analysis to predict frequent gene expression itemsets to predict Lung Cancer type
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@priya-gitTest
priya-gitTest / eafp_vs_lbyl.py
Created June 12, 2018 11:59 — forked from cdgriffith/eafp_vs_lbyl.py
Python EAFP vs LBYL speeds
import reusables
@reusables.time_it()
def test_lbyl(messages):
out = []
for _ in range(10000):
if messages and messages[0] and len(messages[0]) >= 3:
out.append(messages[0][2])
return out
@priya-gitTest
priya-gitTest / main.py
Created June 1, 2018 14:42 — forked from khanhnamle1994/main.py
FCN - Full Code
#--------------------------
# USER-SPECIFIED DATA
#--------------------------
# Tune these parameters
num_classes = 2
image_shape = (160, 576)
EPOCHS = 40
BATCH_SIZE = 16
@priya-gitTest
priya-gitTest / tvl.R
Created April 6, 2018 06:17 — forked from ceshine/tvl.R
Talent vs Luck simulation
library(checkpoint)
checkpoint("2018-02-25")
library(ggplot2)
# number of people
N <- 1000
# probability of event interception
P_E <- 0.075
# probability of lucky event
P_L <- 0.5
@priya-gitTest
priya-gitTest / tcn.py
Created April 6, 2018 06:16 — forked from ceshine/tcn.py
Temporal Convolutional Networks
class TemporalConvNet(tf.layers.Layer):
def __init__(self, num_channels, kernel_size=2, dropout=0.2,
trainable=True, name=None, dtype=None,
activity_regularizer=None, **kwargs):
super(TemporalConvNet, self).__init__(
trainable=trainable, dtype=dtype,
activity_regularizer=activity_regularizer,
name=name, **kwargs
)
self.layers = []
tf.reset_default_graph()
graph = tf.Graph()
with graph.as_default():
tf.set_random_seed(10)
# tf Graph input
X = tf.placeholder("float", [None, timesteps, num_input])
Y = tf.placeholder("float", [None, num_classes])
is_training = tf.placeholder("bool")
# Define weights
@priya-gitTest
priya-gitTest / README.md
Created March 11, 2018 17:48 — forked from hofmannsven/README.md
SQL analyzing business metrics