Skip to content

Commit

Permalink
Merge pull request #3457 from pavlin-policar/tsne-disable-logging
Browse files Browse the repository at this point in the history
t-SNE: Disable library user warnings
  • Loading branch information
lanzagar authored Dec 10, 2018
2 parents 751a6c9 + 0a58282 commit a735e38
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Orange/projection/manifold.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import logging
import warnings

import numpy as np
import sklearn.manifold as skl_manifold
import fastTSNE
import scipy.sparse as sp
from scipy.linalg import eigh as lapack_eigh
from scipy.sparse.linalg import eigsh as arpack_eigh

import fastTSNE
import sklearn.manifold as skl_manifold

import Orange
from Orange.data import Table, Domain, ContinuousVariable
Expand All @@ -17,6 +17,10 @@
__all__ = ["MDS", "Isomap", "LocallyLinearEmbedding", "SpectralEmbedding",
"TSNE"]

# Disable t-SNE user warnings
fastTSNE.tsne.log.setLevel(logging.ERROR)
fastTSNE.affinity.log.setLevel(logging.ERROR)


def torgerson(distances, n_components=2, eigen_solver="auto"):
"""
Expand Down

0 comments on commit a735e38

Please sign in to comment.