November 2019
Intermediate to advanced
346 pages
9h 36m
English
Let's learn how to crack a PUF with ML:
import pandas as pddf = pd.read_csv("CRPdataset.csv")
The data is made up of pairs (x,y), where x is a binary string that's 64 in length and y is a binary digit. Here, x is a challenge and y is a response.
y = df.pop("Label").valuesX = df.values
from sklearn.model_selection import train_test_splitX_train, X_test, y_train, y_test = train_test_split( X, y, test_size=0.25, random_state=11)
from xgboost import XGBClassifierclf = XGBClassifier()clf.fit(X_train, y_train)print(clf.score(X_train, ...