https://github.com/tensorly/tensorly
Revision 75556ceca6d1a4af862e88d9a98923dc787742b0 authored by Aaron Meyer on 17 January 2023, 18:44:42 UTC, committed by GitHub on 17 January 2023, 18:44:42 UTC
* Test adjustments * Fix * Remove index_update from parafac2 * Consolidate CP tests * Fix torch * Black formatting * Add durations to testing output * More adjustments to speed up parafac2 test times * Fix test random states * Fix merge conflicts * Small fixes * Small fixes * Update Github actions * Fix occasional TTOI error * Fix mxnet test * Fix PARAFAC2 normalize factors * Fixes and black formatting Co-authored-by: Aaron Meyer <github@asmlab.org>
1 parent 8ff7e29
Tip revision: 75556ceca6d1a4af862e88d9a98923dc787742b0 authored by Aaron Meyer on 17 January 2023, 18:44:42 UTC
Moderately speeds up and adds testing for CP, PARAFAC2, and Tucker (#478)
Moderately speeds up and adds testing for CP, PARAFAC2, and Tucker (#478)
Tip revision: 75556ce
deploy_docs.sh
#!/bin/bash
# Inspired from scikit-image
# https://github.com/scikit-image/scikit-image/blob/master/tools/travis/deploy_docs.sh
if [[ $TRAVIS_PULL_REQUEST == false && $TRAVIS_BRANCH == "master" &&
$DEPLOY_DOCS == 1 ]]
then
echo "---------------------------------------------------"
echo "deploy_docs.sh: building doc and pushing to website"
(
git config --global user.email "admin@tensorly.org"
git config --global user.name "Travis"
# Install the dependencies
cd doc
echo "-- Installing dependencies"
conda install matplotlib Pillow sphinx
pip install -r requirements_doc.txt
# Making the doc
echo "-- Building doc"
make html
# If build succeeded, update website
if [ $? -eq 0 ]; then
echo 'Documentation was successfully built, updating the website.'
cd ..
echo "-- Cloning doc repo"
git clone --quiet https://github.com/tensorly/tensorly.github.io doc_folder
cd doc_folder
git rm -r dev/*
mkdir -p dev
cp -r ../doc/_build/html/* dev/
echo "Pushinng to git"
git add dev
git commit -m "Travis auto-update"
git push --force --quiet "https://${gh_token}@github.com/tensorly/tensorly.github.io" > /dev/null 2>&1
# Build failed
else
echo '-- Build FAILED. Not updating the website.'
fi
)
else
echo "NOT BUILDIGN DOC -- will only push docs from master and if DEPLOY_DOCS == 1"
fi
Computing file changes ...