Skip to content

Instantly share code, notes, and snippets.

Tiendh lenhhoxung86

Block or report user

Report or block lenhhoxung86

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 Simple random walk with transition probabilities derived from out degree
def compute_random_walk(A, walk_length):
'''Compute random walk based on transition probabilities
Params:
A: Adjacency matrix (numpy array)
walk_length: The length of the walk (int)
Returns:
A list of indices passed by the walk
'''
passed_node_indices = []
View mnist_conv.py.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View mnist_dense.py.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lenhhoxung86
lenhhoxung86 / DeviceModel.swift
Created Nov 2, 2017 — forked from JonFir/DeviceModel.swift
Get device model in Swift
View DeviceModel.swift
// Note: More information can be found here
// https://www.theiphonewiki.com/wiki/Models
import UIKit
public extension UIDevice {
var modelName: String {
var systemInfo = utsname()
uname(&systemInfo)
let machineMirror = Mirror(reflecting: systemInfo.machine)
You can’t perform that action at this time.