from sklearn.neighbors import KNeighborsClassifier
# Create a sperate neural network for each identifier
for index in range(0, len(NaturalLanguageObject._Identifiers)):
nn = KNeighborsClassifier()
self._Networks.append(nn)Show HN: Neural network that impersonates writers
11–20 of 33 posts
Re: Show HN: Neural network that impersonates writers
#12I'd be even more interested if it could be turned into a sublime text plugin that highlights words / phrases that deviate most strongly from the house style.
Re: Show HN: Neural network that impersonates writers
#13this doesn't look like a neural net to me. from NeuralNetwork.py from sklearn.neighbors import KNeighborsClassifier # Create a sperate neural network for each identifier for index in range(0, len(NaturalLanguageObject._Identifiers)): nn = KNeighborsClassifier() self._Networks.append(nn)
Wow.
There's some good reasons to think this approach won't work at all. If I understand it correctly I think it is attempting to predict part of speech using previously observed values.
That's an interesting idea, and might be somewhat valuable as a feature to use in a text generator, but on its own won't be enough to ever generate sentences that make sense (because some specific sequences just don't make sense).
Re: Show HN: Neural network that impersonates writers
#14this doesn't look like a neural net to me. from NeuralNetwork.py from sklearn.neighbors import KNeighborsClassifier # Create a sperate neural network for each identifier for index in range(0, len(NaturalLanguageObject._Identifiers)): nn = KNeighborsClassifier() self._Networks.append(nn)
He mentions that he used sklearn's Neural Network libraries in his blog post, but sklearn doesn't have any aside from RBM.
Re: Show HN: Neural network that impersonates writers
#15Fun hack. If anything, it highlights how compelling deep learning and RNNs are: no messing with NLP, no messing with building other features or adding up classifiers, etc. The manual feature engineering means it might work better on a smaller dataset, but even then probably not. For comparison with Andrej Karpathy's RNN code ( http://karpathy.github.io/2015/05/21/rnn-effectiveness/ ) training on the "HarryPotter(xxla…
As I've posted here before, people have been training character n-gram models and getting language modeling performances comparable to those from word-based models---without using neural networks---for at least a decade. That it works with RNNs is no surprise because it worked just fine with the much more constrained predecessor technology.
Re: Show HN: Neural network that impersonates writers
#16Re: Show HN: Neural network that impersonates writers
#17this doesn't look like a neural net to me. from NeuralNetwork.py from sklearn.neighbors import KNeighborsClassifier # Create a sperate neural network for each identifier for index in range(0, len(NaturalLanguageObject._Identifiers)): nn = KNeighborsClassifier() self._Networks.append(nn)
So then it seems like the author of the code doesn't understand that "NN" means "Nearest Neighbors" and not "Neural Network"? He mentions that he used sklearn's Neural Network libraries in his blog post, but sklearn doesn't have any aside from RBM.
Re: Show HN: Neural network that impersonates writers
#18this doesn't look like a neural net to me. from NeuralNetwork.py from sklearn.neighbors import KNeighborsClassifier # Create a sperate neural network for each identifier for index in range(0, len(NaturalLanguageObject._Identifiers)): nn = KNeighborsClassifier() self._Networks.append(nn)
So then it seems like the author of the code doesn't understand that "NN" means "Nearest Neighbors" and not "Neural Network"? He mentions that he used sklearn's Neural Network libraries in his blog post, but sklearn doesn't have any aside from RBM.
it must be a robust tool.
Re: Show HN: Neural network that impersonates writers
#19Earlier quoted context omitted.
So then it seems like the author of the code doesn't understand that "NN" means "Nearest Neighbors" and not "Neural Network"? He mentions that he used sklearn's Neural Network libraries in his blog post, but sklearn doesn't have any aside from RBM.
Should i be impressed that even though the author was not using the tool they thought then still got it to spit out something? it must be a robust tool.
Re: Show HN: Neural network that impersonates writers
#20[deleted]
I agree the output here is lower quality than I would expect from an RNN, and quite similar to what I would expect from ngram-based markov bots.