unsupervised-learning

scikit-learn documentation example: 'got an unexpected keyword argument'

scikit-learn documentation example: 'got an unexpected keyword argument' Question: When running this example from the scikit-learn documentation, I get the error v_measure_score() got an unexpected keyword argument ‘beta’: from sklearn import metrics labels_true = [0, 0, 0, 1, 1, 1] labels_pred = [0, 0, 1, 1, 2, 2] metrics.v_measure_score(labels_true, labels_pred, beta=0.6) It looks like a …

Total answers: 1

Batch 512 in TFRecordDataset does not work on Unsupervised model

Batch 512 in TFRecordDataset does not work on Unsupervised model Question: I’m using Mnist dataset for testing the Unsupervised model. The dataset and output: test_dataset = tf.data.TFRecordDataset([test_filenames]) test_dataset = test_dataset.map(map_func) test_dataset = test_dataset.batch(512) print("test_dataset.map.element_spec: {}".format(test_dataset.element_spec)) test_dataset.map.element_spec: (TensorSpec(shape=(None, 28, 28), dtype=tf.float32, name=None), TensorSpec(shape=(None, 1), dtype=tf.uint8, name=None)) The first non-unsupervised model is copied from here: https://www.tensorflow.org/tutorials/keras/classification model …

Total answers: 1

Does correlation important factor in Unsupervised learning (Clustering)?

Does correlation important factor in Unsupervised learning (Clustering)? Question: I am working with the dataset of size (500, 33). In particular the data set contains 9 features say [X_High, X_medium, X_low, Y_High, Y_medium, Y_low, Z_High, Z_medium, Z_low] Both visually & after correlation matrix calculation I observed that [X_High, Y_High, Z_High] & [ X_medium, Y_medium, Z_medium …

Total answers: 2

Rand Index function (clustering performance evaluation)

Rand Index function (clustering performance evaluation) Question: As far as I know, there is no package available for Rand Index in python while for Adjusted Rand Index you have the option of using sklearn.metrics.adjusted_rand_score(labels_true, labels_pred). I wrote the code for Rand Score and I am going to share it with others as the answer to …

Total answers: 3

Unsupervised pre-training for convolutional neural network in theano

Unsupervised pre-training for convolutional neural network in theano Question: I would like to design a deep net with one (or more) convolutional layers (CNN) and one or more fully connected hidden layers on top. For deep network with fully connected layers there are methods in theano for unsupervised pre-training, e.g., using denoising auto-encoders or RBMs. …

Total answers: 1