I'm researching anomaly detection, which is nothing else than outliers detection on a set of time-series web servers [access log data](http://www.secrepo.com/self.logs/) or network traffic. Recently I re-faced to following fundamental questions and literature review in this regard to updating myself and find clear answers:

 - Deep Learning (DL) is supervised or unsupervised? 
 - Does splitting data make sense in unsupervised settings? 
 - How can we calculate the loss function (MSE, MAE, etc.) for the unsupervised setting? Is it common?

using python & sklearn:
```python
from sklearn.metrics import mean_squared_error
#Feature Selection
criterion = mean_squared_error(y, predictions)
```
or numpy:
```python
import numpy as np
criterion = np.mean((y_test - est.predict(X_test))**2)
```

Personally, I'm targeting Clustering methods, and its validation is based on [similarities](https://dataaspirant.com/five-most-popular-similarity-measures-implementation-in-python/) as well as isolation forest and move on Autoencoders for DL as recommended [here](https://datascience.stackexchange.com/a/9032/69263). Of course, I'm aware that Cluster analysis is not something to automate fully, and It is an explorative method. On the other hand, [not completely reliable](https://stats.stackexchange.com/a/174879/240550) I was always imagining the main reason for distinguishing between supervised and unsupervised is the existence of label features in data. My picture about DL is mostly the high number of hidden layers and leave the responsibility of feature engineering for DL models. I do like this [vision](https://datascience.stackexchange.com/a/47662/69263) concerning comparing unsupervised anomaly models. I believe that we need still to splitting data and calculate loss function despite unlabeled data due to the fact that:

 1. calculating the metrics on the training set would likely lead to overfitting, and then we need the testing set to evaluate the model. Generally speaking, to track the level of overfitting while we are experimenting with our network.
 2. get an estimate of how many epochs we should train for

Additionally, I read this [online article](https://towardsdatascience.com/unsupervised-learning-and-data-clustering-eeecb78b422a) *Issues with Unsupervised Learning* and *Why still we need them*.

I know the above-mentioned questions look naive, but any help or clarification, even in the short form for this trilogy questions, will be highly appreciated and help me get rid of this confusion and shape my vision correctly.