Closed sdodingnan closed 2 years ago
Hi and thanks.
You can always use sklearn for training and then pass the covariances to gmr like in this example: https://github.com/AlexanderFabisch/gmr/blob/master/examples/plot_iris_from_sklearn.py
Would that work for you? I don't plan to copy the feature to gmr.
嗨,谢谢。
您始终可以使用 sklearn 进行训练,然后将协方差传递给 gmr,如下例所示:https ://github.com/AlexanderFabisch/gmr/blob/master/examples/plot_iris_from_sklearn.py
这对你有用吗?我不打算将该功能复制到 gmr。
I got it, thanks, but whether the GMR can be used for prediction with the same input and output, such as time series anomaly detection tasks, add some noise to the input, and fix it through GMR, if it is normal data, it can be reconstructed well, and the prediction errors will be very large if it is abnormal
This could be possible. Pass the noisy data as X
and the denoised data as y
to the method GMR.fit
. Let me know whether it works as you need it. I don't know. My guess is that you cannot really distinguish noise that is not normally distributed from normally distributed noise if you only have a few samples.
Thank you for your excellent work,I want to know if there is a more flexible GMR, similar to sklearn, which can limit the covariance type to ‘shared’, ‘spherical’ or ‘diag'. Sometimes we don’t need a 'full' type of covariance matrix. I look forward to your reply.