KNN-GMM for missing data imputation - python-3.x

I am looking for the code using python for KNN-GMM algorithm to do the missing data imputation. It would be great if someone can help me.

Related

How to get offsets for ElectraTokenizer

I am trying to use ELECTRA model from HuggingFace library. However, I need to get the offsets for ElectraTokenizer, which can be done straightforward, according to docs. Does anyone know how can I get them? Any help is appreciated.

Loading MNIST Dataset into Octave

I am currently looking to dip my toes into deep learning after a few weeks reading some books and doing some more basic machine learning code. I found the MNIST digit database here http://yann.lecun.com/exdb/mnist/ and am currently trying to determine how to actually use the data.
The data appears to be saved in the IDX3 format, of which I am completely unfamiliar.
I have the training and test data sets saved as text files, but that seems to be fairly useless. For some reason, when I try to load them into Octave using the fopen command, the result is simply '-1'
Does anyone know of the correct way to load this data into Octave? Any help would be greatly appreciated.
Does this code work in Octave?
https://github.com/davidstutz/matlab-mnist-two-layer-perceptron/blob/master/loadMNISTImages.m
Note that is fopen returns -1, then maybe the file path is not correct.

CNTK handwriting recognition

Has anyone ever programmed using CNTK for reading hand-filled documents? I tried OCRs and they dont do handwriting recognition at all (next to nothing). Thinking of using CNTK for the same. I searched and found that not many have tried such a thing. Any advice on libraries or any pointers anyone?
Here a basic OCR example using CNTK:
https://github.com/Microsoft/CNTK/blob/master/Tutorials/CNTK_103B_MNIST_FeedForwardNetwork.ipynb
However, in order to use the model in a real application you will need a way to segment the handwritting.

Two lines segment intersection step by step

I am studying algorithm and math and I came up to "Intersection of two line segment". I searched a good code and explanation about it but with no luck I didn't understand how it works step by step. I read this page and #Gareth explained it well Here's the link . I am very confused. I Have a example like this one p=(11,11), r=(-12,-12), q=(0,0), s=(0,10). My question is how will I apply it to #gareth's expanation. :-(, I am not really good in math so for now I need help.
Any help would be highly appreciated. Thank you guys. Hope there is someone would help me understand this.

Analysing a Digital/Analog signal via Microphone

I just need to be pointed in the right direction as I may be in over my head here.
If I wanted to write a program to analyze a sound wave how would I go about this?
I have an idea that it will involve a mixture of a maths package (like mathematica or matlab) and C or C++ but not sure where to start.
I'm only wondering at the moment but any pointers would be greatly appreciated.
I'm new but not inept and a good challenge is always the best way to learn.
Mathematica and Matlab can both take .wav files as inputs.

Resources