Skip to content

Instantly share code, notes, and snippets.

:atom:
I may be slow to respond.

Atomic Cluster iphton

:atom:
I may be slow to respond.
Block or report user

Report or block iphton

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
@iphton
iphton / Path-Analysis-Neo4j-Cypher.md
Last active Apr 9, 2019
Path Analytics with CYPHER.
View Path-Analysis-Neo4j-Cypher.md

Viewing the graph

match (n:MyNode)-[r]->(m)

return n, r, m

Finding paths between specific nodes:*

@iphton
iphton / Basic-Queires-Neo4j-Cypher.md
Last active Apr 9, 2019
Basic Graph Operations with CYPHER
View Basic-Queires-Neo4j-Cypher.md

Basic Graph Operations with CYPHER

Counting the number of nodes

match (n:MyNode)

return count(n)

Counting the number of edges

@iphton
iphton / Neo4j-Import.md
Created Apr 9, 2019
Imported Data into Neo4j
View Neo4j-Import.md

//One way to "clean the slate" in Neo4j before importing (run both lines):

match (a)-[r]->() delete a,r

match (a) delete a

//Script to Import Data Set: test.csv (simple road network)

@iphton
iphton / Neo4j-Cypher.md
Created Apr 9, 2019
Getting Started With Neo4j. Pseudocode to create ‘Toy’ Network
View Neo4j-Cypher.md

Five Nodes

N1 = Tom

N2 = Harry

N3 = Julian

N4 = Michele
View install-pyspark-deep-learning.md

Step by step tuts to setup apache spark ( pyspark ) on linux and setup environment for deep learning with Apache Spark using Deep-Learning-Pipelines.

Step 1 : Install Python 3 and Jupyter Notebook

Run following command. Someone may need to install pip first or any missing packages may need to download.

sudo apt install python3-pip sudo pip3 install jupyter

@iphton
iphton / classifier_from_little_data_script_3.py
Created Jan 26, 2019 — forked from fchollet/classifier_from_little_data_script_3.py
Fine-tuning a Keras model. Updated to the Keras 2.0 API.
View classifier_from_little_data_script_3.py
'''This script goes along the blog post
"Building powerful image classification models using very little data"
from blog.keras.io.
It uses data that can be downloaded at:
https://www.kaggle.com/c/dogs-vs-cats/data
In our setup, we:
- created a data/ folder
- created train/ and validation/ subfolders inside data/
- created cats/ and dogs/ subfolders inside train/ and validation/
- put the cat pictures index 0-999 in data/train/cats
@iphton
iphton / 4Data.md
Created Nov 12, 2018
4D - Four Dimensional Data
View 4Data.md

Let's consider a folowing 4D matrix.

import numpy as np
W = np.random.randn(2,2,3,100)

print(W.shape)

output:
@iphton
iphton / DotMultiply.md
Last active Nov 24, 2018
In Python np.dot and np.multiply with np.sum
View DotMultiply.md
@iphton
iphton / FilterMap.md
Last active Nov 24, 2018
Python: Difference between filter(function, sequence) and map(function, sequence)
View FilterMap.md

map and filter function in python is pretty different because they perform very differently. Let's have a quick example to differentiate them.

map function

Let's define a function which will take a string argument and check whether it presents in vowel letter sequences.

def lit(word):
    return word in 'aeiou'

Now let's create a map function for this and pass some random string.

You can’t perform that action at this time.