@explorable-viz/fluid 0.7.94 → 0.7.96

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@explorable-viz/fluid",
3
- "version": "0.7.94",
3
+ "version": "0.7.96",
4
4
  "description": "Fluid is an experimental programming language which integrates a bidirectional dynamic analysis to connect outputs to data sources in a fine-grained way. Fluid is implemented in PureScript and runs in the browser.",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -30,6 +30,7 @@
30
30
  "scripts": {
31
31
  "benchmark": "./script/benchmark.sh",
32
32
  "build": "./script/build.sh",
33
+ "build-prod": "BUILD_ENV=prod ./script/build.sh",
33
34
  "build-test": "./script/build-test.sh",
34
35
  "bundle-fluid": "./script/bundle-fluid.sh",
35
36
  "bundle-serve": "sh -c './script/bundle-website.sh -w \"$@\" && ./script/serve.sh \"$1\"' _",
@@ -82,7 +83,8 @@
82
83
  "bin": {
83
84
  "fluid": "./dist/fluid/shared/fluid.mjs",
84
85
  "website-test": "./dist/fluid/shared/website-test.js",
85
- "install-article": "./script/install-article.sh"
86
+ "install-article": "./script/install-article.sh",
87
+ "bundle-website": "./script/bundle-website.sh"
86
88
  },
87
89
  "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
88
90
  }
@@ -9,8 +9,7 @@ while getopts "l" opt; do
9
9
  esac
10
10
  done
11
11
 
12
- shift $((OPTIND - 1))
13
- WEBSITE="${WEBSITE:-$1}"
12
+ WEBSITE="$1"
14
13
  if [ -z "$WEBSITE" ]; then
15
14
  echo "Usage: $0 [-l] <website-name>" >&2
16
15
  exit 1
@@ -5,7 +5,7 @@
5
5
  <meta charset="UTF-8">
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
7
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
8
- <title>Fluid: Data-Linked Visualisations</title>
8
+ <title>Fluid Article Examples</title>
9
9
  <link href="../css/styles.css" rel="stylesheet" type="text/css">
10
10
  <link href="../css/view-styles.css" rel="stylesheet" type="text/css">
11
11
  <script src="https://kit.fontawesome.com/20cf8b42c0.js" crossorigin="anonymous"></script>
@@ -0,0 +1,33 @@
1
+ Paragraph [
2
+ Text "As shown in Table 3, BiLSTM gives significantly ",
3
+ Text (trendWord (findWithKey' "model" "BiLSTM" tableData).acc (findWithKey' "model" "LSTM" tableData).acc betterWorse),
4
+ Text " accuracies compared to uni-directional LSTM2, with the training time per epoch ",
5
+ Text (trendWord (findWithKey' "model" "BiLSTM" tableData).time_s (findWithKey' "model" "LSTM" tableData).time_s growShrink),
6
+ Text " from ",
7
+ Text (numToStr (findWithKey' "model" "LSTM" tableData).time_s),
8
+ Text " seconds to ",
9
+ Text (numToStr (findWithKey' "model" "BiLSTM" tableData).time_s),
10
+ Text " seconds. Stacking 2 layers of BiLSTM gives further improvements to development results, with a ",
11
+ Text (trendWord (findWithKey' "model" "2 stacked BiLSTM" tableData).time_s (findWithKey' "model" "BiLSTM" tableData).time_s smallerHigher),
12
+ Text " time of ",
13
+ Text (numToStr (findWithKey' "model" "2 stacked BiLSTM" tableData).time_s),
14
+ Text " seconds. 3 layers of stacked BiLSTM does not further improve the results. In contrast, S-LSTM gives a development result of ",
15
+ Text (numToStr (findWithKey' "model" "S-LSTM" tableData).acc),
16
+ Text "%, which is significantly better compared to 2-layer stacked BiLSTM, with a ",
17
+ Text (trendWord (findWithKey' "model" "S-LSTM" tableData).param (findWithKey' "model" "2 stacked BiLSTM" tableData).param smallerHigher),
18
+ Text " number of model parameters and a ",
19
+ Text (trendWord (findWithKey' "model" "S-LSTM" tableData).time_s (findWithKey' "model" "2 stacked BiLSTM" tableData).time_s shorterLonger),
20
+ Text " time of ",
21
+ Text (numToStr (findWithKey' "model" "S-LSTM" tableData).time_s),
22
+ Text " seconds. We additionally make comparisons with stacked CNNs and hierarchical attention (Vaswani et al., 2017), shown in Table 3 (the CNN and Transformer rows), ",
23
+ Text ((findWithKey' "time_s" (minimum (map (fun y -> y.time_s) tableData)) tableData).model),
24
+ Text " is the most efficient among all models compared, with the ",
25
+ Text (let pos = findIndex "model" "CNN" (insertionSort cmpParam tableData) in rankLabel "smallest" pos),
26
+ Text " model size. On the other hand, a 3-layer stacked CNN gives an accuracy of ",
27
+ Text (numToStr (fromSome (findWithKey "model" "3 stacked CNN" tableData)).acc),
28
+ Text "%, which is also the ",
29
+ Text (let pos = findIndex "model" "CNN" (insertionSort cmpTime tableData) in rankLabel "lowest" pos),
30
+ Text " compared with BiLSTM, hierarchical attention and S-LSTM. The best performance of hierarchical attention is between single-layer and two-layer BiLSTMs in terms of both accuracy and efficiency. S-LSTM gives significantly better accuracies compared with both CNN and hierarchical attention. Table 3 additionally shows the results of BiLSTM and S-LSTM when external attention is used Attention leads to improved accuracies for both BiLSTM and S-LSTM in classification, with S-LSTM still ",
31
+ Text (trendWord (findWithKey' "model" "S-LSTM" tableData).acc (findWithKey' "model" "BiLSTM" tableData).acc underOverPerforming),
32
+ Text " BiLSTM significantly."
33
+ ]
@@ -14,6 +14,7 @@ let convolve image kernel =
14
14
  (half_i, half_j) = (i `quot` 2, j `quot` 2);
15
15
  area = i * j
16
16
  in [| let interMatrix =
17
+ """average these to compute value of element (${m'},${n'})"""
17
18
  [| let x = m' + i' - 1 - half_i;
18
19
  y = n' + j' - 1 - half_j in
19
20
  lookup x y image * kernel!(i', j')
@@ -4,7 +4,7 @@
4
4
  <meta charset="UTF-8">
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
6
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
7
- <title>Fluid Article Examples</title>
7
+ <title>ESOP 2025 Submission 89 Anonymised Web Demo</title>
8
8
  <link href="css/styles.css" rel="stylesheet" type="text/css">
9
9
  <script src="https://kit.fontawesome.com/20cf8b42c0.js" crossorigin="anonymous"></script>
10
10
  </head>
@@ -0,0 +1,45 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <link rel="icon" href="/favicon.ico" type="image/x-icon">
5
+ <meta charset="UTF-8">
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
+ <meta http-equiv="X-UA-Compatible" content="ie=edge">
8
+ <title>Fluid: scigen-multiple-replace</title>
9
+ <link href="../css/styles.css" rel="stylesheet" type="text/css">
10
+ <link href="../css/view-styles.css" rel="stylesheet" type="text/css">
11
+ <script src="https://kit.fontawesome.com/20cf8b42c0.js" crossorigin="anonymous"></script>
12
+ <script src="../shared/util.js"></script>
13
+ <style>
14
+ .data-pane {
15
+ max-width: 400px;
16
+ }
17
+ </style>
18
+ </head>
19
+ <body>
20
+ <div id="grid" class="grid-container data-pane-hidden">
21
+ <div></div>
22
+ <div></div>
23
+ <div class="flex-left-align">
24
+ <h3>1805.02474v1-10</h3>
25
+ <p>---</p>
26
+ </div>
27
+
28
+ <div class="flex-right-align data-pane">
29
+ <div id="fig-input"></div>
30
+ </div>
31
+ <div onclick="toggleDataPane('grid')">
32
+ <i class="data-pane-button toggle-button fa-solid fa-eye-slash"></i>
33
+ </div>
34
+ <div id="fig">
35
+ <div class="fig-loading">loading figure(s)</div>
36
+ </div>
37
+ </div>
38
+
39
+ <script type="module">
40
+ import { drawCode, loadFigure } from "../shared/load-figure.js";
41
+ loadFigure("spec.json")();
42
+ </script>
43
+ </body>
44
+ </html>
45
+
@@ -0,0 +1,9 @@
1
+ {
2
+ "imports" : [ "scigen", "util" ],
3
+ "file" : "1805.02474v1-10",
4
+ "inputs" : [ "tableData" ],
5
+ "datasets" : [ [ "tableData", "dataset/scigen/1805.02474v1-10" ] ],
6
+ "fluidSrcPath" : [ "../fluid" ],
7
+ "query": false,
8
+ "linking": true
9
+ }