Skip to content

Instantly share code, notes, and snippets.

View VictorNas's full-sized avatar

Victor Nascimento VictorNas

View GitHub Profile
@VictorNas
VictorNas / find_epsilon.py
Created April 29, 2020 17:45
Epsilon DBSCAN
def find_epsilon(matrix, min_samples):
"""
Automatically find epsilon hyperparameter necessary to run DBSCAN.
Args:
matrix (numpy array): Matrix embbeding. Each row represents a product title in form of a vector.
min_samples(int): Should be the same value of the min_samples hyperparameter used in DBSCAN.
Returns:
return eps(float): Value of episilon hyperparameter.
"""
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@VictorNas
VictorNas / PY0101EN-5-2-Numpy2D.ipynb
Created March 25, 2019 18:14
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@VictorNas
VictorNas / PY0101EN-5-1-Numpy1D.ipynb
Created March 25, 2019 17:59
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.