-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cannot compute complex score correctly.
- Loading branch information
Showing
11 changed files
with
303 additions
and
91 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 |
---|---|---|
|
@@ -89,14 +89,20 @@ changelog: | |
|
||
deploy: deploy-biomedgps | ||
|
||
deploy-biomedgps: build-biomedgps-studio | ||
build-biomedgps-cross-compile: | ||
@docker run --rm -it -v "$(CURDIR)":/home/rust/src messense/rust-musl-cross:x86_64-musl cargo build --release | ||
@rsync -avP target/x86_64-unknown-linux-musl/release/biomedgps target/x86_64-unknown-linux-musl/release/biomedgps-cli [email protected]:/data/biomedgps/bin | ||
@rsync -avP --delete assets/index.html [email protected]:/var/www/html/biomedgps/index.html | ||
@rsync -avP --delete assets [email protected]:/var/www/html/biomedgps/ | ||
|
||
deploy-rapex: build-rapex-studio | ||
deploy-biomedgps: build-biomedgps-studio build-biomedgps-cross-compile | ||
@printf "\nDone!\n" | ||
|
||
build-rapex-cross-compile: | ||
@docker run --rm -it -v "$(CURDIR)":/home/rust/src messense/rust-musl-cross:x86_64-musl cargo build --release | ||
@rsync -avP target/x86_64-unknown-linux-musl/release/biomedgps target/x86_64-unknown-linux-musl/release/biomedgps-cli [email protected]:/data/rapex/bin | ||
@rsync -avP --delete assets/index.html [email protected]:/var/www/html/rapex/index.html | ||
@rsync -avP --delete assets [email protected]:/var/www/html/rapex/ | ||
@rsync -avP --delete assets [email protected]:/var/www/html/rapex/ | ||
|
||
deploy-rapex: build-rapex-studio build-rapex-cross-compile | ||
@printf "\nDone!\n" |
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 |
---|---|---|
|
@@ -200,7 +200,7 @@ pub struct CacheTableArguments { | |
batch_size: usize, | ||
} | ||
|
||
/// Import embedding files into a database. The embedding files are generated by KGE models. If you have multiple models for different cases or datasets, you need to import them all and with different parameters, such as table_name, model_name, model_type, dataset, description etc. More details about these parameters can be found in their descriptions. | ||
/// Import embedding files into a database. The embedding files are generated by KGE models. If you have multiple models for different cases or datasets, you need to import them all and with different parameters, such as table_name, model_type, dataset, description etc. More details about these parameters can be found in their descriptions. | ||
#[derive(StructOpt, PartialEq, Debug)] | ||
#[structopt(setting=structopt::clap::AppSettings::ColoredHelp, name="BioMedGPS - importkge", author="Jingcheng Yang <[email protected]>")] | ||
pub struct ImportKGEArguments { | ||
|
@@ -228,24 +228,15 @@ pub struct ImportKGEArguments { | |
#[structopt(name = "metadata_file", short = "f", long = "metadata-file")] | ||
metadata_file: String, | ||
|
||
/// [Optional] The table name you want to name. e.g. biomedgps, mecfs, etc. This feature is used to distinguish different dataset combinations matched with your model. If not set, we will use the biomedgps as default. But in this case, the dimension of the embedding should be 400. | ||
/// [Optional] The dataset name you want to name. e.g. biomedgps, mecfs, etc. This feature is used to distinguish different dataset combinations matched with your model. If not set, we will use the biomedgps as default. But in this case, the dimension of the embedding should be 400. | ||
#[structopt( | ||
name = "table_name", | ||
name = "dataset_name", | ||
short = "t", | ||
long = "table-name", | ||
long = "dataset-name", | ||
default_value = DEFAULT_MODEL_NAME | ||
)] | ||
table_name: String, | ||
|
||
/// [Optional] The model name you want to name. e.g. mecfs_transe, mecfs_distmult, etc. You need to specify the model name when you import the embedding files. This feature is used to distinguish different models. Users can choose the model for their own purpose. | ||
#[structopt( | ||
name = "model_name", | ||
short = "m", | ||
long = "model-name", | ||
default_value = DEFAULT_MODEL_NAME | ||
)] | ||
model_name: String, | ||
|
||
/// [Required] The model type of generated embedding files. e.g. TransE_l1, TransE_l2, DistMult, ComplEx, etc. This feature is used to distinguish different models. Users can choose the model for their own purpose. | ||
#[structopt(name = "model_type", short = "M", long = "model-type", default_value = "TransE_l2", possible_values = &["TransE_l1", "TransE_l2", "TransH", "TransR", "TransD", "RotatE", "DistMult", "ComplEx"])] | ||
model_type: String, | ||
|
@@ -699,7 +690,6 @@ async fn main() { | |
} | ||
|
||
let table_name = arguments.table_name; | ||
let model_name = arguments.model_name; | ||
let model_type = arguments.model_type; | ||
let description = arguments.description; | ||
let datasets: Vec<&str> = arguments.dataset.iter().map(|s| s.as_str()).collect(); | ||
|
@@ -728,7 +718,6 @@ async fn main() { | |
import_kge( | ||
&database_url, | ||
&table_name, | ||
&model_name, | ||
&model_type, | ||
&datasets, | ||
description.as_deref(), | ||
|
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
Oops, something went wrong.