What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-02-19 10:35:24
array map
const myArray = ['Sam', 'Alice', 'Nick', 'Matt']; // Appends text to each element of the array const newArray = myArray.map(name => { return 'My name is ' + name; }); console.log(newArray); // ['My name is Sam', 'My Name is Alice', ...] // Appends ... Add solution -
Python 2022-02-18 07:30:05
multiclass classification model
knn=KNeighborsClassifier() svc=SVC() lr=LogisticRegression() dt=DecisionTreeClassifier() gnb=GaussianNB() rfc=RandomForestClassifier() xgb=XGBClassifier() gbc=GradientBoostingClassifier() ada=AdaBoostClassifier() ------------------------------------------... Add solution -
Shell/Bash 2022-02-18 03:30:03
update python debian
# check python version python3 --version #output: Python 3.7.3 # Open the /etc/apt/sources.list file with the following command: sudo nano /etc/apt/sources.list # Add the official testing repository. Append the following line of text to # the end of ... Add solution