Skip to content

Instantly share code, notes, and snippets.

View shubham808's full-sized avatar
🌟

Shubham Shukla shubham808

🌟
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<title>Dotchaser</title>
{
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
[----------] 5 tests from KNN
[ RUN ] KNN.brute_solver
PROGRESS: |█████████████████| 100.00% 0.0 seconds remaining 0.0 seconds total
[ OK ] KNN.brute_solver (75 ms)
[ RUN ] KNN.kdtree_solver
[ OK ] KNN.kdtree_solver (164 ms)
[ RUN ] KNN.lsh_solver
[ OK ] KNN.lsh_solver (135 ms)
[ RUN ] KNN.classify_multiple_brute
PROGRESS: |█████████████████| 100.00% 0.0 seconds remaining 0.0 seconds total
TEST(Perceptron, prematurely_stop)
{
auto env = linear_test_env->getBinaryLabelData();
auto features = wrap(env->get_features_train());
auto labels = wrap(env->get_labels_train());
auto test_features = wrap(env->get_features_test());
auto test_labels = wrap(env->get_labels_test());
auto perceptron = some<CPerceptron>();
#include <shogun/base/init.h>
#include <shogun/base/some.h>
#include <shogun/evaluation/ContingencyTableEvaluation.h>
#include <shogun/features/Features.h>
#include <shogun/io/File.h>
#include <shogun/io/SerializableAsciiFile.h>
#include <shogun/labels/BinaryLabels.h>
#include <shogun/labels/Labels.h>
#include <shogun/lib/DynamicObjectArray.h>
#include <shogun/lib/SGVector.h>