-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'mindspore-lab:master' into master
- Loading branch information
Showing
62 changed files
with
4,084 additions
and
463 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import re | ||
import requests | ||
import os | ||
|
||
def gen_url(os, py_version): | ||
hf_url = 'https://huggingface.co/lvyufeng/mindspore-daily/resolve/main/' | ||
whl_name = 'mindspore-newest-cp{}-cp{}-{}.whl' | ||
py_version = py_version.replace('.', '') | ||
|
||
if os == 'ubuntu-latest': | ||
platform = 'linux_x86_64' | ||
elif os == 'macos-latest': | ||
platform = 'macosx_10_15_x86_64' | ||
elif os == 'windows-latest': | ||
platform = 'win_amd64' | ||
else: | ||
raise ValueError(f'not support this operate system {os}') | ||
|
||
py_version2 = py_version if py_version != '37' else py_version + 'm' | ||
whl_name = whl_name.format(py_version, py_version2, platform) | ||
|
||
with open('download.txt', 'w', encoding='utf-8') as f: | ||
f.write(hf_url + whl_name) | ||
|
||
if __name__ == '__main__': | ||
platform = os.environ['OS'] | ||
python = os.environ['PYTHON'] | ||
gen_url(platform, python) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -133,4 +133,5 @@ kernel_meta/ | |
rank_0/ | ||
|
||
.vscode/ | ||
*.ckpt | ||
*.ckpt | ||
download.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
Metrics | ||
======== | ||
|
||
accuracy | ||
--------------------------------------- | ||
|
||
.. automodule:: mindnlp.metrics.accuracy | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
bleu | ||
--------------------------------------- | ||
|
||
.. automodule:: mindnlp.metrics.bleu | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
confusion_matrix | ||
--------------------------------------- | ||
|
||
.. automodule:: mindnlp.metrics.confusion_matrix | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
distinct | ||
--------------------------------------- | ||
|
||
.. automodule:: mindnlp.metrics.distinct | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
em\_score | ||
--------------------------------------- | ||
|
||
.. automodule:: mindnlp.metrics.em_score | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
f1 | ||
--------------------------------------- | ||
|
||
.. automodule:: mindnlp.metrics.f1 | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
matthews | ||
--------------------------------------- | ||
|
||
.. automodule:: mindnlp.metrics.matthews | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
pearson | ||
--------------------------------------- | ||
|
||
.. automodule:: mindnlp.metrics.pearson | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
perplexity | ||
--------------------------------------- | ||
|
||
.. automodule:: mindnlp.metrics.perplexity | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
precision | ||
--------------------------------------- | ||
|
||
.. automodule:: mindnlp.metrics.precision | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
recall | ||
--------------------------------------- | ||
|
||
.. automodule:: mindnlp.metrics.recall | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
rouge | ||
--------------------------------------- | ||
|
||
.. automodule:: mindnlp.metrics.rouge | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
spearman | ||
--------------------------------------- | ||
|
||
.. automodule:: mindnlp.metrics.spearman | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.