Scientific Functions in NumPy and SciPy
import datetime
import tensorflow as tf
import matplotlib.pyplot as plt
import numpy as np
import numba
def tSNE(X, ndims=2, perplexity=30, seed=0, max_iter=500, stop_lying_iter=100, mom_switch_iter=400):
“”“The t-SNE algorithm
Args:
X: the high-dimensional coordinates
ndims: number of dimensions in output domain
Returns:
Points of X in low dimension
““”
momentum =