@article{OpenMLPython2019,
- author = {Matthias Feurer, Jan N. van Rijn, Arlind Kadra, Pieter Gijsbers, Neeratyoy Mallik, Sahithya Ravi, Andreas Mueller, Joaquin Vanschoren, Frank Hutter},
+ author = {Matthias Feurer and Jan N. van Rijn and Arlind Kadra and Pieter Gijsbers and Neeratyoy Mallik and Sahithya Ravi and Andreas Mueller and Joaquin Vanschoren and Frank Hutter},
title = {OpenML-Python: an extensible Python API for OpenML},
journal = {arXiv},
volume = {1911.02490},
diff --git a/openml_OS/views/pages/frontend/home/body.php b/openml_OS/views/pages/frontend/home/body.php
index b87e73883..d4cfe2161 100644
--- a/openml_OS/views/pages/frontend/home/body.php
+++ b/openml_OS/views/pages/frontend/home/body.php
@@ -32,19 +32,21 @@
+
diff --git a/scripts/install.sh b/scripts/install.sh
old mode 100644
new mode 100755
index 41734bdbf..47a581b24
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -1,14 +1,18 @@
#!/bin/bash
+# Get info
+read -p 'MYSQL Username: ' uservar
+read -sp 'MYSQL Password: ' passvar
+
# Variables
OPENML_DIR=$PWD # Default is current directory
OPENML_DATA="$PWD/data" # Set to data directory
OPENML_LOG="$OPENML_DATA/log"
-MYSQL_USER="youruser" # MySQL user name and password
-MYSQL_PASS="yourpassword"
+MYSQL_USER=$uservar # MySQL user name and password
+MYSQL_PASS=$passvar
echo "Creating directories... "
-mkdir $OPENML_DATA
+#mkdir $OPENML_DATA
mkdir $OPENML_LOG
sudo chown apache:apache $OPENML_LOG
sudo chown apache:apache "$OPENML_LOG/*"
@@ -18,123 +22,13 @@ cd $OPENML_DIR
# reinitiate the database
echo "Building databases... "
-mysql -u $MYSQL_USER -p $MYSQL_PASS < downloads/openml_expdb.sql
-mysql -u $MYSQL_USER -p $MYSQL_PASS < downloads/openml.sql
+mysql -u $MYSQL_USER -p$MYSQL_PASS < downloads/openml.sql
+mysql -u $MYSQL_USER -p$MYSQL_PASS openml < /home/jvanscho/users-secret.sql
+mysql -u $MYSQL_USER -p$MYSQL_PASS < downloads/openml_expdb.sql
# fill important columns
sudo php index.php cron install_database
# create ES search index
echo "Building search indices... "
-curl -XPUT 'localhost:9200/data' -H 'Content-Type: application/json' -d'
-{
- "settings" : {
- "index" : {
- "number_of_shards" : 1,
- "number_of_replicas" : 0
- }
- }
-}
-'
-curl -XPUT 'localhost:9200/run' -H 'Content-Type: application/json' -d'
-{
- "settings" : {
- "index" : {
- "number_of_shards" : 1,
- "number_of_replicas" : 0
- }
- }
-}
-'
-curl -XPUT 'localhost:9200/flow' -H 'Content-Type: application/json' -d'
-{
- "settings" : {
- "index" : {
- "number_of_shards" : 1,
- "number_of_replicas" : 0
- }
- }
-}
-'
-curl -XPUT 'localhost:9200/task' -H 'Content-Type: application/json' -d'
-{
- "settings" : {
- "index" : {
- "number_of_shards" : 1,
- "number_of_replicas" : 0
- }
- }
-}
-'
-curl -XPUT 'localhost:9200/user' -H 'Content-Type: application/json' -d'
-{
- "settings" : {
- "index" : {
- "number_of_shards" : 1,
- "number_of_replicas" : 0
- }
- }
-}
-'
-curl -XPUT 'localhost:9200/measure' -H 'Content-Type: application/json' -d'
-{
- "settings" : {
- "index" : {
- "number_of_shards" : 1,
- "number_of_replicas" : 0
- }
- }
-}
-'
-curl -XPUT 'localhost:9200/task_type' -H 'Content-Type: application/json' -d'
-{
- "settings" : {
- "index" : {
- "number_of_shards" : 1,
- "number_of_replicas" : 0
- }
- }
-}
-'
-curl -XPUT 'localhost:9200/study' -H 'Content-Type: application/json' -d'
-{
- "settings" : {
- "index" : {
- "number_of_shards" : 1,
- "number_of_replicas" : 0
- }
- }
-}
-'
-curl -XPUT 'localhost:9200/like' -H 'Content-Type: application/json' -d'
-{
- "settings" : {
- "index" : {
- "number_of_shards" : 1,
- "number_of_replicas" : 0
- }
- }
-}
-'
-curl -XPUT 'localhost:9200/download' -H 'Content-Type: application/json' -d'
-{
- "settings" : {
- "index" : {
- "number_of_shards" : 1,
- "number_of_replicas" : 0
- }
- }
-}
-'
-curl -XPUT 'localhost:9200/downvote' -H 'Content-Type: application/json' -d'
-{
- "settings" : {
- "index" : {
- "number_of_shards" : 1,
- "number_of_replicas" : 0
- }
- }
-}
-'
-
sudo php index.php cron build_es_indices
diff --git a/scripts/reset.sh b/scripts/reset.sh
index 997af521b..f4dc6be40 100755
--- a/scripts/reset.sh
+++ b/scripts/reset.sh
@@ -1,24 +1,28 @@
#!/bin/bash
+# Get info
+read -p 'MYSQL Username: ' uservar
+read -sp 'MYSQL Password: ' passvar
+
# Variables
OPENML_DIR=$PWD # Default is current directory
OPENML_DATA="$PWD/data" # Set to data directory
OPENML_LOG="$OPENML_DATA/log"
-MYSQL_USER="youruser" # MySQL user name and password
-MYSQL_PASS="yourpassword"
+MYSQL_USER=$uservar # MySQL user name and password
+MYSQL_PASS=$passvar
# delete data from server
echo "Deleting server data... "
-sudo rm -rf $OPENML_DATA
+sudo rm -rf $OPENML_LOG
# delete database
echo "Deleting databases... "
-mysqladmin -u $MYSQL_USER -p $MYSQL_PASS DROP openml_expdb
-mysqladmin -u $MYSQL_USER -p $MYSQL_PASS DROP openml
+mysqladmin -u $MYSQL_USER -p$MYSQL_PASS DROP openml_expdb
+mysqladmin -u $MYSQL_USER -p$MYSQL_PASS DROP openml
# delete search indices
echo "Deleting search indices... "
curl -XDELETE http://localhost:9200/_all
-chmod a+x ./install.sh
-sh ./install.sh
+chmod a+x ./scripts/install.sh
+sh ./scripts/install.sh