0
$\begingroup$

There were some posts that using RNN can predict the next point of the sine wave function with data history.

However, I wondered if it also works on all the functions of $x$, such as $x^2$, $x^3$, $\log(x)$, $\frac{1}{(x+1)}$ functions.

$\endgroup$
0

1 Answer 1

-2
$\begingroup$

Yes, RNN can work on the functions you have mentioned. In fact, neural networks can approximate anything (Universal Approximation Theorem). This question also reminds me of Neural Turing Machine.

But, it would be a complete waste to use RNNs or NNs for such a task.

$\endgroup$
6
  • 2
    $\begingroup$ Neural networks cannot approximate "anything". They can approximate continuous functions and provided that certain conditions are met. It may be a good idea to provide a link to some article that provides more details. $\endgroup$
    – nbro
    Feb 13, 2021 at 16:54
  • $\begingroup$ Thank you. It would not be a waste because i need the thing that this assumption is true to build my own algorithm. $\endgroup$ Feb 13, 2021 at 23:37
  • $\begingroup$ The downvote is due to lack of specificity. One cannot use the UAT to justify everything, there are assumptions on the domain and the continuity of a function involved in even the most general case of UAT. $\endgroup$
    – user9947
    Feb 14, 2021 at 13:13
  • $\begingroup$ I know UAT doesn't cover it all but it is the only mathematical thing I can point out. Otherwise, I can say it is magic, because nobody can explain the unreasonable effectiveness of neural networks. It is a black-box which we frankly no nothing about. Hence, the need to run helter-skelter building bigger things or hitting any arrow that hits in the dark.. $\endgroup$ Feb 16, 2021 at 21:05
  • $\begingroup$ @AbhishekVerma it is true there is a lot of things which is unknown. But there are also a lot of things which are known. These are highly theoretical in nature so I won't comment on it but just seeing the question itself I can spot 2 functions which are not uniformly continuous. Hence, a little bit more special treatment is required than just UAT. Also I generally don't downvote posts but I am kind of tired of seeing answers which just use UAT as answer. My vote is locked so I can't really remove it now. $\endgroup$
    – user9947
    Feb 21, 2021 at 13:06

You must log in to answer this question.