![]() ![]() You need to check for 1.0 + (macheps/2) in your while loop, not 1.0 + macheps. Also, your algorithm is slightly incorrect. The fundamental equation of a simple linear regression analysis is: E ( Y X) 0 + 1 X, This equation meaning is that the average value of Y is linear on the values of X. Use something else instead, like macheps. It is my understanding that the linear regression model is predicted via a conditional expectation E (YX)b+Xb+e. By creating a variable called eps, you would shadow over the actual function, and so any other functions in MATLAB that require its use will behave unexpectedly, and that's not what you want. As a result, it might be more misleading than helpful. ![]() Those metrics are all global metrics, but Keras works in batches. This is a pre-defined function in MATLAB that calculates machine epsilon, which is also what you are trying to calculate. 5 Answers Sorted by: 61 Metrics have been removed from Keras core. Also, don't use eps as an actual variable. First and foremost, there is no such thing as a do keyword in MATLAB, so eliminate that from your code.
0 Comments
Leave a Reply. |