This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# source https://www.youtube.com/watch?v=cKxRvEZd3Mw | |
from sklearn import tree; | |
# 0 for bumpy | |
# 1 for smooth | |
features = [[140,1], [130,1], [150,0], [170,0]] | |
#0 for apple | |
#1 for orange | |
labels = [0 ,0, 1, 1]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// getting connection from mysql.js file | |
// creating new mysql connection and checking it | |
const mysqlConnection = require('./model/mysql'); | |
const mysql = require('mysql'); | |
app.get('/testmysql', function(req, res) { | |
console.log(mysqlConnection.name); | |
mysqlConnection.createConnection().then((connection) => { | |
let query = "select * from zeus_user"; | |
let table = []; | |
query = mysql.format(query, table); |
NewerOlder