Classify
apparently preprocesses your input data, for example (same example from Classify
reference page, but using NeuralNetwork
as the method):
Othello = Import["http://www.gutenberg.org/cache/epub/2267/pg2267.txt"];
Hamlet = Import["http://www.gutenberg.org/cache/epub/2265/pg2265.txt"];
Macbeth = Import["http://www.gutenberg.org/cache/epub/2264/pg2264.txt"];
TheImportanceOfBeingEarnest = Import["http://www.gutenberg.org/cache/epub/844/pg844.txt"];
ThePictureofDorianGray = Import["http://www.gutenberg.org/cache/epub/174/pg174.txt"];
AnIdealHusband = Import["http://www.gutenberg.org/files/885/885-0.txt"];
LesMiserables = Import["http://www.gutenberg.org/cache/epub/135/pg135.txt"];
NotreDamedeParis = Import["http://www.gutenberg.org/cache/epub/2610/pg2610.txt"];
TheManWhoLaughs = Import["http://www.gutenberg.org/cache/epub/12587/pg12587.txt"];
author = Classify[
<|"William Shakespeare" -> {Othello, Hamlet},
"Oscar Wilde" -> {TheImportanceOfBeingEarnest, ThePictureofDorianGray},
"Victor Hugo" -> {LesMiserables, NotreDamedeParis}|>,
Method -> {"NeuralNetwork"}];
Now, by executing Options[author]
, we get more information about the trained Neural Network:
{<|"Common"-><|"Pattern"->_String,"Preprocessors"-><|"Input"->"ToLowerCase" -> "WordTokenize" -> "TokensToTFIDFVector" -> "ReduceDimension","Output"->"IntegerEncodeList"|>,"Decision"-><|"Prior"-><|"Oscar Wilde"->0.3333333333333333`,"Victor Hugo"->0.3333333333333333`,"William Shakespeare"->0.3333333333333333`|>...
I'm wondering if there's any way we can see what the preprocessed data is (for example: see what the TFIDF vector or IntegerEncodeList look like).
FullForm[author]
help? $\endgroup$FullForm
a few times out of curiosity to see what was being stored ...but it is not my field so unsure how useful the information is to a "skilled practitioner" $\endgroup$