# Deep neural network regression with non-smooth data

How does a deep neural network, trained for regression with back propagation, deal with cases when different training pairs have the same input value, but different output values, i.e. the relationship between input and output is not smooth?

In other words, suppose I train a deep neural network for regression from $x$ to $y$, using back propagation. Two of my data pairs have the same $x$ ($x_1 = a$ and $x_2 = a$), but very different $y$'s ($y_1 = b$ and $y_2 = c$). After training the network, what would be the output $y_k$ for an input of $x_k = a$? Would it be $b$, or the average of $b$ and $c$?

Have you trained some network with the setting you have mentioned? I have not yet, but if we think in some function like $y=\sqrt{x}$ or $y=sin^{-1}(x); x\in [0,2\pi ]$, these are simple functions, however if you want to approximate them, complex values should be supported by the learned transformation $x\mapsto f(x) = y$, i.e. in order to approximate functions like the mentioned ones, the network's architecture must be endowed with complex valued basis funtions 1. Otherwise, the imaginary part of the image of $f(x)$ could be lost. It is seemed to the case of approximating an injective function, where more than a $x$ corresponds to a $y$, e.g. $y = f(x) = x^2$. Then try to approximate $f^{-1}(y) = x$.
{"ft_lang_label":"__label__en","ft_lang_prob":0.89100695,"math_prob":0.999529,"size":603,"snap":"2023-40-2023-50","text_gpt3_token_len":164,"char_repetition_ratio":0.11519199,"word_repetition_ratio":0.0,"special_character_ratio":0.28689885,"punctuation_ratio":0.128,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99994755,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-09-29T08:19:54Z\",\"WARC-Record-ID\":\"<urn:uuid:8c2d1af9-df7a-4ec5-8a5f-47468aa678f0>\",\"Content-Length\":\"155933\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:d02ca689-d30f-4c21-9699-e4ddc940e129>\",\"WARC-Concurrent-To\":\"<urn:uuid:5380af9c-57fd-4461-8d34-40fb26b5050e>\",\"WARC-IP-Address\":\"104.18.10.86\",\"WARC-Target-URI\":\"https://stats.stackexchange.com/questions/182112/deep-neural-network-regression-with-non-smooth-data\",\"WARC-Payload-Digest\":\"sha1:UGGGOTC5DYJLMMOMY3IMQ3Z36PL3XK74\",\"WARC-Block-Digest\":\"sha1:NMJCZT2NZS45FN5CJ4VEIBLHKIKFMIJT\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-40/CC-MAIN-2023-40_segments_1695233510498.88_warc_CC-MAIN-20230929054611-20230929084611-00324.warc.gz\"}"}