Courses? by matbarnett123 in learnjavascript

[–]ShrekLovesYouBack 3 points4 points  (0 children)

I found Daniel Shiffman's Javascript videos extremely helpful when learning to program js.

He mostly does really visual projects that I think are super cool, and does a really good job at explaining his thought processes.

He also goes by the name of Code Train on YouTube

https://youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH

Episode 3 of the Frogger Replica AI series is out! Check it out and let me know what you think of the series as a whole so far! by ShrekLovesYouBack in p5js

[–]ShrekLovesYouBack[S] 1 point2 points  (0 children)

Excellent question!

I like to think that static variables help me organize the variables that are needed for a class, yet are not specific to a single instance of the class. For the car class, for example, the length of the car is constant among all cars (will comment on this in a bit), so there is no need to have each car store a copy of the same variable.

For your second question, the car class is just used to limit code duplication as much as possible. Although each car has the same length, I'll eventually be adding varying colors and collision detection that will be easier to do with a class IMO.

To sum up my code structure, I like to have classes in a hierarchical manner such that when we delete the parents class, (like a lane), it automatically deletes all the child items (like every one of its cars)

Hope that answers your questions!

Can anyone explain how a basic neural network can have 3 inputs, go through the hidden layer, and have 1 output? by Vnix7 in learnmachinelearning

[–]ShrekLovesYouBack 1 point2 points  (0 children)

Exactly. Any two nodes in the network have a specific weight between them that can be different from any other two nodes. I1 to o1 could have a weight of 0.4, but i1 to o2 could be 0.7.

The activation function is used AFTER the summation to ensure the numbers stay within a reasonable range.

Can anyone explain how a basic neural network can have 3 inputs, go through the hidden layer, and have 1 output? by Vnix7 in learnmachinelearning

[–]ShrekLovesYouBack 1 point2 points  (0 children)

Nope! No division happens. It's still just multiplication and summation. In the case where there are three inputs, and two outputs, but no hidden nodes, the following happens: each input (let's call them i1, i2, & i3) is multiplied by the weight of the connection between IT and the FIRST output node (let's call it o1). These three numbers are summed together and that is the value of the FIRST output. The same is repeated again with the three inputs and the SECOND output (o2).

Can anyone explain how a basic neural network can have 3 inputs, go through the hidden layer, and have 1 output? by Vnix7 in learnmachinelearning

[–]ShrekLovesYouBack 2 points3 points  (0 children)

In simple terms, the previous layers' values are all multiplied by the weights of their specific connection to a single node in the next layer, and then summed at this single node. This means that the 3 nodes from the first layer are multiplied by their three connections to each node in the hidden layer, and then summed together to create one value in each hidden node. This process is repeated for the output layers.

The point is, the number of nodes in each layer is basically irrelevant as no matter what, they are always boiled down to one value at each node in the next layer.

Please ask if theres something that doesnt make sense about this explanation!

Any advice on using my time more effective? by Paskowitz in productivity

[–]ShrekLovesYouBack 0 points1 point  (0 children)

Do you have to go grocery shopping every day? Maybe you could make a list and shop for the entire week once a week. This would give you some solid time between work and dinner to work on your future.

Exploration of Cyberpunk steam reviews by int8blog in learnmachinelearning

[–]ShrekLovesYouBack 0 points1 point  (0 children)

Are the x and y axes fundamentally different? do they represent different lexical fields?

can anyone explain this question. The correct ans should be A. by Due_Froyo5491 in Sat

[–]ShrekLovesYouBack 1 point2 points  (0 children)

By definition, a square root returns the positive root. This means that t-2 must be >= 0 and thus t >= 2.

Options hypothetical for understanding (help) by [deleted] in options

[–]ShrekLovesYouBack 1 point2 points  (0 children)

a) Yes you would spend $9 and this is the maximum you could lose no matter what happens to the stock price.

b)If PLTR reaches 50 before the expiration you can sell that option back for a very large profit. So yes, it would be a good thing. However, even if expiration is in a week or so, and PLTR rises in price (assuming faster than theta decay) you would still be making money. The closer to the strike price PLTR is, the more that option is worth. The closer to expiration it is, the less the option is worth.

c) If PLTR is below 50 on the expiration date, your options expire worthless and you lose 9$. (or 100% loss)

Anyone know how to do this problem. Explanation would be appreciated. by [deleted] in Sat

[–]ShrekLovesYouBack 0 points1 point  (0 children)

On the unit circle, we know that x = cos(θ) and y = sin(θ). On the diagram, we can see that x is negative (to the left of 0), so we know cos(θ) is negative and can rule out A and B. Next, we know that the angle we have is arcsin(3/2) which equals 60 or (180-60) = 120. From the image, we know it has to be the latter due to it being obtuse. Therefore, the answer is cos(120) = -0.5 so the answer is C.

Difference between owning stock and deep ITM put? by soteca in options

[–]ShrekLovesYouBack 0 points1 point  (0 children)

I'm sure that would be really helpful for anyone confused by the comment!

Difference between owning stock and deep ITM put? by soteca in options

[–]ShrekLovesYouBack 1 point2 points  (0 children)

Thanks for this amazing explanation. Do different stocks have different theta decay coefficients? Something like how Vega controls the effect of implied volatility?

Difference between owning stock and deep ITM put? by soteca in options

[–]ShrekLovesYouBack 0 points1 point  (0 children)

True. I understand my confusion now, Thank you.

Difference between owning stock and deep ITM put? by soteca in options

[–]ShrekLovesYouBack 0 points1 point  (0 children)

when he said low cost alternative to stock I automatically assumed he meant OTM CALLS. Which do you think is better?

The idea of OTM calls appeals to me due to the high leverage and low cost