Skip to content

Commit

Permalink
Merge pull request #155 from artefactory/joss
Browse files Browse the repository at this point in the history
ADD: JoSS submission Paper & Experiments
  • Loading branch information
VincentAuriau authored Sep 6, 2024
2 parents 0a67406 + 2aeef3a commit acd45e5
Show file tree
Hide file tree
Showing 17 changed files with 2,267 additions and 632 deletions.
23 changes: 23 additions & 0 deletions .github/actions/build-draft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Open Journals PDF Generator
description: Create a draft PDF for an Open Journals paper
inputs:
journal:
description: Target journal, must be either "joss" or "jose"
required: false
default: joss
paper-path:
description: >-
Path to the main paper Markdown file, relative to the
project's root directory.
required: false
default: 'paper.md'
runs:
using: docker
image: 'docker://openjournals/inara:latest'
env:
GIT_SHA: $GITHUB_SHA
JOURNAL: ${{ inputs.journal }}
args:
- -o pdf
- -p
- ${{ inputs.paper-path }}
23 changes: 23 additions & 0 deletions .github/actions/build-draft/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Open Journals PDF Generator
description: Create a draft PDF for an Open Journals paper
inputs:
journal:
description: Target journal, must be either "joss" or "jose"
required: false
default: joss
paper-path:
description: >-
Path to the main paper Markdown file, relative to the
project's root directory.
required: false
default: 'paper.md'
runs:
using: docker
image: 'docker://openjournals/inara:latest'
env:
GIT_SHA: $GITHUB_SHA
JOURNAL: ${{ inputs.journal }}
args:
- -o pdf
- -p
- ${{ inputs.paper-path }}
29 changes: 29 additions & 0 deletions .github/workflows/draft_paper.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Paper draft to PDF

on:
push:
branches:
- paper

jobs:
paper:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Build draft PDF
uses: ./.github/actions/build-draft
with:
journal: joss
paper-path: docs/paper/paper.md

- name: Upload
uses: actions/upload-artifact@v4
with:
name: paper
# This is the output path where Pandoc will write the compiled
# PDF. Note, this should be the same directory as the input
# paper.md
path: docs/paper/paper.pdf
1 change: 1 addition & 0 deletions choice_learn/datasets/expedia.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def load_expedia(as_frame=False, preprocessing="rumnet"):
get_path("preprocessed_expedia_rumnet.csv", module=CACHE_MODULE), engine="pyarrow"
)
logging.info("Loaded cached preprocessed data.")

except FileNotFoundError:
expedia_df.date_time = pd.to_datetime(expedia_df.date_time, format="%Y-%m-%d %H:%M:%S")
expedia_df.loc[:, "day_of_week"] = expedia_df.loc[:, "date_time"].dt.dayofweek
Expand Down
Binary file added docs/illustrations/features_storage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/illustrations/features_storage_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/illustrations/features_storage_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/illustrations/full_ram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/illustrations/items_vs_shared_features.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/illustrations/ram_usage_comparison.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/illustrations/table.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit acd45e5

Please sign in to comment.