Git Product home page Git Product logo

semantic-modeling's Introduction

Installation

Install aten library from pytorch

git clone https://github.com/pytorch/pytorch.git
git checkout v0.4.0
export CMAKE_PREFIX_PATH="$(dirname $(which conda))/../" # [anaconda root directory]

# Install basic dependencies
conda install numpy pyyaml mkl mkl-include setuptools cmake cffi typing

# Add LAPACK support for the GPU
conda install -c pytorch magma-cuda80 # or magma-cuda90 if CUDA 9

Compile cython

ENV=prod OS=macos python setup.py build_ext --inplace

Run ansible to setup server on remote servers

cd containers/ansible
ansible-playbook -i inventory.ini setup-vm.yml

Instruction

To run experiments, run scripts in bin/experiments folder.

The experiment results are in folder experiments

semantic-modeling's People

Contributors

binh-vu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

semantic-modeling's Issues

Error when running exp. script

Hello, can you help me understand what is causing this error? I tried to run the script mira_ museum_crm.sh but encountered the following error:

Finished release [optimized] target(s) in 0.08s
     Running `/home/zwfeng2/sm/sm/target/release/exec -i 
'/home/zwfeng2/sm/sm/bin/experiments/debug/experiments/museum_edm_july_27__16:11:14
/kfold-/home/zwfeng2/sm/sm/bin/experiments/debug/museum_edm/cached/semantic_models.json' --- '
<_io.TextIOWrapper' 'name='\''/home/zwfeng2/sm/sm/bin/experiments/debug/museum_edm/cached
/semantic_models.json'\''' 'mode='\''r'\''' 'encoding='\''UTF-8'\''>' s01-to-s14/rust-input.json -c 
/home/zwfeng2/sm/sm/bin/experiments/mira_config.yml exp -g false`

error: Found argument '--' which wasn't expected, or isn't valid in this context

USAGE:
    exec [OPTIONS] -i <input> [SUBCOMMAND]

Some of the debugging information for the script is as follows.

>>>>>> semantic-labeling-method=ReImplMinhISWC, #TYPES=4, KFOLD = {"train_sm_ids": ["s01-s14"], "test_sm_ids": ["s15-s28"]}
Execute: python -m experiments.semantic_modeling.kfold_mira             --dataset=museum_crm             --func=gen_input             --styper=ReImplMinhISWC             --styper_top_n_stypes=4             --styper_simulate_testing=false             --kfold={"train_sm_ids": ["s01-s14"], "test_sm_ids": ["s15-s28"]}             --exp_dir=/home/zwfeng2/sm/sm/bin/experiments/debug/experiments/museum_crm_july_27__16:22:01
/home/zwfeng2/sm/sm/bin/experiments/debug/museum_crm/cached/semantic_models.json
---
<_io.TextIOWrapper name='/home/zwfeng2/sm/sm/bin/experiments/debug/museum_crm/cached/semantic_models.json' mode='r' encoding='UTF-8'>

Attached is my log file.
execution.log

Code running

Hello, could you tell me the order in which the files in the bin/experiments directory run?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.