Posts by Fabio Oliveira • 104 points
10 posts
-
0
votes1
answer22
viewsA: How to embedding sentences for NLP in Tensorflow?
Use a class object Tokenizer of the Keras. # criar objeto da classe Tokenizer(): from tensorflow.keras.preprocessing.text import Tokenizer tokenizer = Tokenizer() # construir o dicionário usado pelo…
-
1
votes1
answer35
viewsA: Neural network with a scalar input (time) and 3 output values that does not train properly
It seems to me that you are modeling your problem the wrong way (correct me if I’m wrong, I delete the answer if that’s the case). Although you are interested in A/B/C concentrations over time, it…
-
0
votes1
answer48
viewsA: Incorrectly created chart
What’s going on is that so much xx how much yy are filled with strings, instead of numerical or date values. So when you plot, matplotlib just seeing text. To resolve, just convert to the…
-
1
votes1
answer50
viewsA: Index 3D arrays with Numpy
The code below solves what you are trying to do. I compared your code with mine (setting the same Seed of the random number generator) and the results were equal. Notice that instead of looping up…
-
0
votes1
answer49
viewsA: CHANGING VALUES ON A DATFRAME
There’s a way to do what you want, but it’s not as direct as you’d like: Create a dedicated function to implement the bmi calculation according to your criteria. Create column values separately bmi…
-
1
votes1
answer43
viewsA: How to add a number to an array?
Yes, your thinking is correct (in theory), but this characteristic is purposeful and very welcome. This behavior happens because numpy applies a practice called Broadcasting. When you perform…
-
-1
votes1
answer170
viewsA: How to send keyboard commands to emulator?
Look for a tool that calls Autohotkey. It allows you to write scripts to capture inputs on the keyboard or mouse and run actions automatically. You can write a script telling you which commands will…
-
1
votes1
answer111
viewsA: How to see the weights in Tensorflow?
Two pieces of information to answer your question: An object of the class model has a property layers, that returns a list of all layers. You can use it to access the layers individually. For…
-
0
votes1
answer27
viewsA: How can I check if there are equal numbers in the same column or row in a numpy matrix?
You can use the pandas' nunique() method to return to you how many unique entries there are in each row or column. If you have four unique entries, it’s because the values are all different. Then…
-
2
votes2
answers66
viewsA: What is the basic format of a convolutional network in Keras?
Your question is very relevant, and it’s one of the great challenges of working with neural networks. Don’t worry about being in high school, this difficulty is the same for everyone! If your model…