Skip to content

Instantly share code, notes, and snippets.

Lu Yifan luyifan

Block or report user

Report or block luyifan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
import numpy as np
from numpy import linalg
import cvxopt
import cvxopt.solvers
def linear_kernel(x1, x2):
return, x2)
def polynomial_kernel(x, y, p=3):
return (1 +, y)) ** p
package org.apache.hadoop.mrunit.mapreduce;
import java.util.ArrayList;
import java.util.List;
import org.apache.hadoop.mapreduce.Mapper;
import org.apache.hadoop.mapreduce.Reducer;
import org.apache.hadoop.mrunit.mapreduce.MapDriver;
You can’t perform that action at this time.