-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dd1f26b
commit 94023c3
Showing
5 changed files
with
85 additions
and
16 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,43 @@ | ||
# 818_search | ||
# 818_search | ||
VIRE: Visual Information Retrieval Evaluation | ||
|
||
#Set up instructions: | ||
ssh -i ~/Downloads/DNS.pem [email protected] | ||
## Install Packages | ||
sudo apt-get update | ||
sudo apt-get install python3-pip | ||
sudo apt-get install python3-venv | ||
sudo apt-get install postgresql-server-dev-10 | ||
|
||
For mac: | ||
brew install redis | ||
|
||
git clone https://github.com/zhanif3/818_search.git | ||
|
||
## First, install the needed python environnment | ||
cd 818_search | ||
python3 -m venv env | ||
|
||
## Run the virtual environment | ||
source env/bin/activate | ||
|
||
## Install needed python packages | ||
(env)$ pip install flask | ||
(env)$ pip install psycopg2 | ||
|
||
|
||
## Set up the database (DO NOT DO THIS ON AWS SERVER) | ||
sudo -u postgres createuser --interactive | ||
818project, y | ||
sudo -u postgres createdb sammy | ||
sudo adduser sammy | ||
sudo -i -u sammy | ||
psql | ||
|
||
# What DB am I connected to? | ||
\conninfo | ||
|
||
#Run instructions | ||
redis-server | ||
python server.py | ||
Visit URL on browser: http://localhost:5000/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
query_number,metric_type,score | ||
1, NDCG, 0.078 | ||
1, MAP, 0.078 | ||
2, MAP, 0.5 | ||
3, MAP, 0.2 | ||
4, MAP, 0.3 | ||
|
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
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
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