Commit 3eda76db authored by Mateusz Pawlik's avatar Mateusz Pawlik

Added config files and view queries for error plots of upper bounds.

parent 87dbe948
{
"title": "Error",
"print_title": "no",
"legend": "best",
"legend_font_size": 18,
"grid": "on",
"dataset_name": "DBLP",
"markers": [".", ".", "."],
"colors": ["darkblue", "darkgreen", "orange"],
"lines": [" ", " ", " "],
"tables": [
{
"table_name": "dblp_labelguided_x_avg_pair_tree_size_y_ted_error_k10",
"attributes": [
{
"attr_name": "avg(dis)"
}
],
"name": "TED (size normalized)"
},
{
"table_name": "dblp_labelguided_x_avg_pair_tree_size_y_ted_error_k10",
"attributes": [
{
"attr_name": "avg(error)"
}
],
"name": "LGM relative error"
},
{
"table_name": "dblp_cted_x_avg_pair_tree_size_y_ted_error_k10",
"attributes": [
{
"attr_name": "avg(error)"
}
],
"name": "CTED relative error"
}
],
"x_axis": {
"db_column": "avg_pair_tree_size",
"name": "Tree Size",
"font_size": 20,
"ticks_font_size": 20
},
"y_axis": {
"name": "",
"font_size": 20,
"ticks_font_size": 20
}
}
\ No newline at end of file
{
"title": "Error",
"print_title": "no",
"legend": "best",
"legend_font_size": 18,
"grid": "on",
"dataset_name": "Sentiment",
"markers": [".", ".", "."],
"colors": ["darkblue", "darkgreen", "orange"],
"lines": [" ", " ", " "],
"tables": [
{
"table_name": "sentiment_labelguided_x_avg_pair_tree_size_y_ted_error_k10",
"attributes": [
{
"attr_name": "avg(dis)"
}
],
"name": "TED (size normalized)"
},
{
"table_name": "sentiment_labelguided_x_avg_pair_tree_size_y_ted_error_k10",
"attributes": [
{
"attr_name": "avg(error)"
}
],
"name": "LGM relative error"
},
{
"table_name": "sentiment_cted_x_avg_pair_tree_size_y_ted_error_k10",
"attributes": [
{
"attr_name": "avg(error)"
}
],
"name": "CTED relative error"
}
],
"x_axis": {
"db_column": "avg_pair_tree_size",
"name": "Tree Size",
"font_size": 20,
"ticks_font_size": 20
},
"y_axis": {
"name": "",
"font_size": 20,
"ticks_font_size": 20
}
}
\ No newline at end of file
......@@ -175,6 +175,26 @@ CREATE MATERIALIZED VIEW sentiment_labelguided_x_avg_pair_tree_size_y_ted_error_
ON l.avg_pair_tree_size=a.avg_pair_tree_size
WITH DATA;
-- Sentiment ted_cted average ted value per average size in tree pair k10.
DROP MATERIALIZED VIEW IF EXISTS sentiment_cted_x_avg_pair_tree_size_y_avg_ted_k10 CASCADE;
CREATE MATERIALIZED VIEW sentiment_cted_x_avg_pair_tree_size_y_avg_ted_k10 AS
SELECT (tree_size_1+tree_size_2)/2.0 AS avg_pair_tree_size, avg(ted_value) AS avg_ted_value
FROM ted_cted NATURAL JOIN ted_experiment_params
WHERE dataset_filename = 'sentiment_sorted.bracket'
AND abs(tree_size_1-tree_size_2)<=10
GROUP BY avg_pair_tree_size
ORDER BY avg_pair_tree_size
WITH DATA;
-- Sentiment Error: (ub-ted)/ted
DROP MATERIALIZED VIEW IF EXISTS sentiment_cted_x_avg_pair_tree_size_y_ted_error_k10;
CREATE MATERIALIZED VIEW sentiment_cted_x_avg_pair_tree_size_y_ted_error_k10 AS
SELECT l.avg_pair_tree_size, a.avg_ted_value/a.avg_pair_tree_size AS dis, (l.avg_ted_value-a.avg_ted_value)/(a.avg_ted_value) AS error
FROM sentiment_cted_x_avg_pair_tree_size_y_avg_ted_k10 AS l
JOIN sentiment_apted_x_avg_pair_tree_size_y_avg_ted_k10 AS a
ON l.avg_pair_tree_size=a.avg_pair_tree_size
WITH DATA;
-- DBLP ted_apted average ted value per average size in tree pair k10.
DROP MATERIALIZED VIEW IF EXISTS dblp_apted_x_avg_pair_tree_size_y_avg_ted_k10 CASCADE;
CREATE MATERIALIZED VIEW dblp_apted_x_avg_pair_tree_size_y_avg_ted_k10 AS
......@@ -206,3 +226,23 @@ CREATE MATERIALIZED VIEW dblp_labelguided_x_avg_pair_tree_size_y_ted_error_k10 A
JOIN dblp_apted_x_avg_pair_tree_size_y_avg_ted_k10 AS a
ON l.avg_pair_tree_size=a.avg_pair_tree_size
WITH DATA;
-- DBLP ted_cted average ted value per average size in tree pair k10.
DROP MATERIALIZED VIEW IF EXISTS dblp_cted_x_avg_pair_tree_size_y_avg_ted_k10 CASCADE;
CREATE MATERIALIZED VIEW dblp_cted_x_avg_pair_tree_size_y_avg_ted_k10 AS
SELECT (tree_size_1+tree_size_2)/2.0 AS avg_pair_tree_size, avg(ted_value) AS avg_ted_value
FROM ted_cted NATURAL JOIN ted_experiment_params
WHERE dataset_filename = 'dblp_no_www_sorted.bracket'
AND abs(tree_size_1-tree_size_2)<=10
GROUP BY avg_pair_tree_size
ORDER BY avg_pair_tree_size
WITH DATA;
-- DBLP Error: (ub-ted)/ted
DROP MATERIALIZED VIEW IF EXISTS dblp_cted_x_avg_pair_tree_size_y_ted_error_k10;
CREATE MATERIALIZED VIEW dblp_cted_x_avg_pair_tree_size_y_ted_error_k10 AS
SELECT l.avg_pair_tree_size, a.avg_ted_value/a.avg_pair_tree_size AS dis, (l.avg_ted_value-a.avg_ted_value)/(a.avg_ted_value) AS error
FROM dblp_cted_x_avg_pair_tree_size_y_avg_ted_k10 AS l
JOIN dblp_apted_x_avg_pair_tree_size_y_avg_ted_k10 AS a
ON l.avg_pair_tree_size=a.avg_pair_tree_size
WITH DATA;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment