Experiments for TIT paper "Optimal Rates for Agnostic Distributed Learning".
To install FALKON, set the MATLAB shell path to the kernels folder and run:
mex -largeArrayDims ./tri_solve_d.cpp -lmwblas -lmwlapack
mex -largeArrayDims ./inplace_chol.cpp -lmwblas -lmwlapack
To install libsvm for loading libsvm datasets, set the MATLAB shell path to the ./utils/libsvm/matlab folder and just run:
make
kernelscontains basic functions for kernels and random features.methodsconsists of compared methods.utilsinvolves utility tools, including figures, data processing, simulated data generating and so on.datasetsstores the primal datasets from libsvm or other sources.datastores '.mat' files after data processing for datasets.resultsstores intermediate results and outputs.
generate_simulated_splineis used to generate simulated dataset with different settings.data_preprocessgenerates the training and testing sets based on given datasets.
-
best_parameters_SSL_DKRRincludes used hyperparameters for datasets, including data partitions,$\sigma$ ,$\lambda$ and iteration times. -
test_ssl_unlabeledrecords the test errors and training times in terms of different number of unlabeled examples. -
test_ssl_unlabeledis used to draw two figures: classification error and training time versus the number of unlabeled examples. -
test_ssl_partitionsrecords the test errors and training times in terms of different number of partitions. -
draw_ssl_partitionsis used to draw two figures: classification error and training time versus the number of partitions. -
run_script_SSL_DKRRis the script that conducts experiments and draw visual comparison in terms of different datasets.
- Just run
run_script_SSL_DKRR. - OR run
test_ssl_unlabeledandtest_ssl_unlabeledfor comparion on the number of unlabeled exmaples. - OR run
test_ssl_partitionsanddraw_ssl_partitionsfor comparion on the number of partitions.