Skip to content

Commit

Permalink
update edutraintpl and version
Browse files Browse the repository at this point in the history
kervias committed Aug 30, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 0fee349 commit b274cb9
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@
project = 'EduStudio'
copyright = '2023, HFUT-LEC'
author = 'HFUT-LEC'
release = 'v1.0.0-beta2'
release = 'v1.0.0-beta2.1'

import sphinx_rtd_theme
import os
2 changes: 1 addition & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.. EduStudio documentation master file.
.. title:: EduStudio v1.0.0-beta2
.. title:: EduStudio v1.0.0-beta2.1
.. image:: assets/logo.png

=========================================================
2 changes: 1 addition & 1 deletion edustudio/__init__.py
Original file line number Diff line number Diff line change
@@ -2,4 +2,4 @@
from __future__ import print_function
from __future__ import division

__version__ = 'v1.0.0-beta2'
__version__ = 'v1.0.0-beta2.1'
4 changes: 3 additions & 1 deletion edustudio/traintpl/edu_traintpl.py
Original file line number Diff line number Diff line change
@@ -92,7 +92,9 @@ def fit(self, train_loader, valid_loader):
self.optimizer.zero_grad()
loss.backward()
self.optimizer.step()
for k in loss_dict: logs[k][batch_id] = loss_dict[k].item() if loss_dict[k] is not None else np.nan
for k in loss_dict:
if loss_dict[k] is not None:
logs[k][batch_id] = loss_dict[k].item()

for name in logs: logs[name] = float(np.nanmean(logs[name]))

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -42,7 +42,7 @@

setup(
name="edustudio",
version="v1.0.0-beta2",
version="v1.0.0-beta2.1",
description="a Unified and Templatized Framework for Student Assessment Models",
long_description=long_description,
python_requires='>=3.8',

0 comments on commit b274cb9

Please sign in to comment.