GRAFIT · NI-ROZ / ANI-ROZ
Cvičení z rozpoznáváníPattern recognition tutorials
Dvě navazující cvičení po 90 minutách.Two linked 90-minute tutorials.
Slidy, výpočty a klikátka jsou česky i anglicky. Jazyk se přepíná v záhlaví. Ukázky se ovládají přímo ve slidech; šipky listují mezi tématy.Slides, calculations and interactive examples are available in Czech and English. Change language in the header. Use the examples inside the slides; use the arrows to move between topics.
1. Příznaky a PCAFeatures and PCA
Co znamená vektor příznaků, jak působí matice a jak z odchylek sestavíme kovarianční matici. Vlastní vektory a hodnoty dovedeme až k PCA a rekonstrukci obrázků.Feature vectors, matrix transformations and covariance from deviations. Follow eigenvectors and eigenvalues through to PCA and image reconstruction.
2. Shlukování a klasifikaceClustering and classification
DBSCAN a K-means, klasifikace nejbližším sousedem a SVM. Jak vybrat příznaky a parametry a jak poznat, jestli model funguje i na nových datech.DBSCAN and K-means, nearest-neighbour classification and SVM. Choose features and parameters, then evaluate on new data.
Plán výuky, úkoly a pseudokódyTeaching plan, tasks and pseudocode · Obě cvičení ke staženíDownload both tutorials (ZIP)
Dřívější materiályEarlier materials
Původní Geometrie dat, výklad a pracovní listOriginal Data geometry, guide and worksheet
Archivní odkaz vyžaduje internet. Samotná cvičení fungují po rozbalení ZIPu i bez něj.The archive link requires internet access. The tutorials themselves also work offline after extracting the ZIP.
Python a C++Python and C++
U ukázek kódu lze přepínat Python / C++; výchozí je C++. Pseudokód zůstává jako samostatná možnost. Volba programovacího jazyka je nezávislá na češtině a angličtině.Switch examples between Python and C++; C++ is the default. Pseudocode remains a separate option. The programming language is independent of the Czech/English interface.
Stáhnout C++ projekt a dataDownload the C++ project and data (ZIP) · Kompilace na Windows a LinuxuBuild on Windows and Linux · Python ukázkyPython examples
C++ projekt používá C++17 a CMake, obsahuje Makefile a zdrojový kód LIBSVM včetně licence. Další knihovny neinstalujete.The C++17 project provides CMake, a Makefile and the LIBSVM sources with their licence. No additional libraries need to be installed.
cd examples/cpp
cmake -S . -B build
cmake --build build --config ReleaseLinux/macOS: ./build/check_pca. Windows s generátorem Visual Studio: .\build\Release\check_pca.exe. Další příkazy a formát CSV jsou v README projektu.Linux/macOS: ./build/check_pca. With the Visual Studio generator on Windows: .\build\Release\check_pca.exe. See the project README for more commands and the CSV format.
Stáhnout Python projekt a dataDownload the Python project and data (ZIP) · Spuštění PythonuRunning Python
Každý ZIP obsahuje spustitelnou ukázku, její data a návod. Vyberte si C++ nebo Python.Each ZIP contains a runnable example, its input data and instructions. Choose C++ or Python.