Giter Club home page Giter Club logo

short_text_cnn_cluster's People

Contributors

zqhzy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

short_text_cnn_cluster's Issues

data

No such file or directory: 'data/GoogleNews-vectors-negative300.bin'

How can I visualize data

Hi,
First of all I want to say thanks to @zqhZY for such a useful code.
I am facing a problem in this code. There is no visualization code as it has been shown in research paper. I want to visualize my results exactly like paper in the form of scatter plot. Therefore, I request to share code of visualization. I would be very thankful to you. I need it within two days as I have to present it in my class. So if visualization code can be shared within two days then it would be very helpful for me. Thank you.

I am getting errors

Hi,
First of all, I want to say thanks for this very helpful code. I am a beginner and we are tried to reproduce the results of this experiment. I am trying to running this code on google colab. Due to resources limit I shorten the data set to first 200 rows. I write following lines to run this code files in google colab:
!python3 /content/drive/MyDrive/IRTM_Term_Project_Sem_1/short_text_cnn_cluster-master/utils.py .
!python3 /content/drive/MyDrive/IRTM_Term_Project_Sem_1/short_text_cnn_cluster-master/train_cnn.py .

When I run second command then I am getting these errors. Please help me how can I remove those errors:

/usr/local/lib/python3.6/dist-packages/sklearn/cluster/_kmeans.py:88: RuntimeWarning: divide by zero encountered in log
n_local_trials = 2 + int(np.log(n_clusters))
/usr/local/lib/python3.6/dist-packages/sklearn/cluster/_kmeans.py:88: RuntimeWarning: divide by zero encountered in log
n_local_trials = 2 + int(np.log(n_clusters))
/usr/local/lib/python3.6/dist-packages/sklearn/cluster/_kmeans.py:88: RuntimeWarning: divide by zero encountered in log
n_local_trials = 2 + int(np.log(n_clusters))
joblib.externals.loky.process_executor._RemoteTraceback:
"""
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/joblib/externals/loky/process_executor.py", line 431, in _process_worker
r = call_item()
File "/usr/local/lib/python3.6/dist-packages/joblib/externals/loky/process_executor.py", line 285, in call
return self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.6/dist-packages/joblib/_parallel_backends.py", line 595, in call
return self.func(*args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/joblib/parallel.py", line 263, in call
for func, args, kwargs in self.items]
File "/usr/local/lib/python3.6/dist-packages/joblib/parallel.py", line 263, in
for func, args, kwargs in self.items]
File "/usr/local/lib/python3.6/dist-packages/sklearn/cluster/_kmeans.py", line 314, in _kmeans_single_elkan
x_squared_norms=x_squared_norms)
File "/usr/local/lib/python3.6/dist-packages/sklearn/cluster/_kmeans.py", line 626, in _init_centroids
x_squared_norms=x_squared_norms)
File "/usr/local/lib/python3.6/dist-packages/sklearn/cluster/_kmeans.py", line 88, in _k_init
n_local_trials = 2 + int(np.log(n_clusters))
OverflowError: cannot convert float infinity to integer
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/content/drive/MyDrive/IRTM_Term_Project_Sem_1/short_text_cnn_cluster-master/train_cnn.py", line 157, in
km.fit(V)
File "/usr/local/lib/python3.6/dist-packages/sklearn/cluster/_kmeans.py", line 956, in fit
for seed in seeds)
File "/usr/local/lib/python3.6/dist-packages/joblib/parallel.py", line 1054, in call
self.retrieve()
File "/usr/local/lib/python3.6/dist-packages/joblib/parallel.py", line 933, in retrieve
self._output.extend(job.get(timeout=self.timeout))
File "/usr/local/lib/python3.6/dist-packages/joblib/_parallel_backends.py", line 542, in wrap_future_result
return future.result(timeout=timeout)
File "/usr/lib/python3.6/concurrent/futures/_base.py", line 432, in result
return self.__get_result()
File "/usr/lib/python3.6/concurrent/futures/_base.py", line 384, in __get_result
raise self._exception
OverflowError: cannot convert float infinity to integer

Expand the README

Looking at the code, this seems like it can help me, but there's no way of knowing without spending some effort understanding the code. A bit more detailed summary of the script would be greatly appreciated!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.