tensorflow_cookbook icon indicating copy to clipboard operation
tensorflow_cookbook copied to clipboard

Suggestion for better test_indices

Open ychong opened this issue 7 years ago • 3 comments

Hi I would like to propose a better implementation for 'test_indices':

We can remove the unneeded np.array casting:

Cleaner/New: test_indices = list(set(range(len(texts))) - set(train_indices))

Old: test_indices = np.array(list(set(range(len(texts))) - set(train_indices)))

ychong avatar Feb 08 '18 03:02 ychong

Thanks! I'll look into this. Do you know where specifically you want this changed?

nfmcclure avatar Mar 21 '18 14:03 nfmcclure

Hi Nick thanks for replying. Yes I didn't make it clear earlier. It's just clearer syntax. You can change it under Chapter 07 Neural Network - improving_linear_regression.py, and other similar implementation as well.

ychong avatar Jul 28 '18 16:07 ychong

Hi Everyone could you please let me know for the classification part is the following data set suitable to build classification model for point Cloud. https://shapenet.cs.stanford.edu/media/modelnet40_ply_hdf5_2048.zip,

thanks

12744746 avatar Feb 08 '20 11:02 12744746