June 2016
Beginner to intermediate
304 pages
6h 24m
English
You can use neural networks for vector quantization as well. Vector quantization is the N-dimensional version of "rounding off". This is very commonly used across multiple areas in computer vision, natural language processing, and machine learning in general.
import numpy as np import matplotlib.pyplot as plt import neurolab as nl
data_vq.txt file:# Define input data input_file = 'data_vq.txt' input_text = np.loadtxt(input_file) data = input_text[:, 0:2] labels = input_text[:, 2:]