yoshida-lab / XenonPy

XenonPy is a Python Software for Materials Informatics
http://xenonpy.readthedocs.io
BSD 3-Clause "New" or "Revised" License
135 stars 57 forks source link

test auto reshape when using TensorConvert #192

Closed TsumiNa closed 4 years ago

TsumiNa commented 4 years ago

Closes #189

@stewu5 I have added some tests for automatic reshape when an input has shape (x,). All tests passed.

codecov[bot] commented 4 years ago

Codecov Report

Merging #192 into master will increase coverage by 0.03%. The diff coverage is 94.94%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #192      +/-   ##
==========================================
+ Coverage   82.87%   82.90%   +0.03%     
==========================================
  Files          93       93              
  Lines        6417     6446      +29     
==========================================
+ Hits         5318     5344      +26     
- Misses       1099     1102       +3     
Impacted Files Coverage Δ
xenonpy/model/training/extension/tensor_convert.py 94.20% <85.71%> (+0.08%) :arrow_up:
xenonpy/model/training/trainer.py 95.20% <89.74%> (-0.97%) :arrow_down:
tests/models/test_extension.py 95.98% <100.00%> (+0.45%) :arrow_up:
tests/models/test_trainer.py 99.22% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 13d69df...ef0a876. Read the comment docs.