René's URL Explorer Experiment


Title: `pacemaker` crashes when early stopping and maximum iterations flags are raised at the same time · Issue #86 · ICAMS/python-ace · GitHub

Open Graph Title: `pacemaker` crashes when early stopping and maximum iterations flags are raised at the same time · Issue #86 · ICAMS/python-ace

X Title: `pacemaker` crashes when early stopping and maximum iterations flags are raised at the same time · Issue #86 · ICAMS/python-ace

Description: I have been using the min_relative_train_loss_per_iter and min_relative_test_loss_per_iter in my fittings but during the ladder scheme fitting when the early stopping is triggered at the same time the maximum number of iterations have be...

Open Graph Description: I have been using the min_relative_train_loss_per_iter and min_relative_test_loss_per_iter in my fittings but during the ladder scheme fitting when the early stopping is triggered at the same time ...

X Description: I have been using the min_relative_train_loss_per_iter and min_relative_test_loss_per_iter in my fittings but during the ladder scheme fitting when the early stopping is triggered at the same time ...

Opengraph URL: https://github.com/ICAMS/python-ace/issues/86

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`pacemaker` crashes when early stopping and maximum iterations flags are raised at the same time","articleBody":"I have been using the `min_relative_train_loss_per_iter` and `min_relative_test_loss_per_iter` in my fittings but during the ladder scheme fitting when the early stopping is triggered at the same time the maximum number of iterations have been reached (I set this to 1000), it crashes the run.\n\nThis may happen when `min_relative_test_loss_per_iter` is set to 5e-5 or 1e-4\nThose are the other parameters I used in my fittings,\n\n```\nkappa = 0.08\nnrad_max = [15, 7, 3, 2, 1, 1], l_max = [0, 4, 3, 2, 1, 1] =\u003e 374 functions\nladder_type = 'power_order'\nladder_step = [20, 0.1]\nbatch_size = 1000\nearly_stopping_patience = 200\nmax_iter = 1000\n```\n\nThis is the error message I get from the log file after the 1000th iteration,\n\n```\n --------------------------------------------TEST STATS--------------------------------------------\n Iteration:  #1000Loss:    Total:  2.6584e-05 (100%) \n                          Energy:  1.2040e-05 ( 45%) \n                           Force:  1.3858e-05 ( 52%) \n                              L1:  4.0020e-07 (  2%) \n                              L2:  2.8561e-07 (  1%) \n Number of params./funcs:    585/100                                  Avg. time:       0.00 mcs/at\n -------------------------------------------------------------------------------------------------\n            Energy/at, meV/at   Energy_low/at, meV/at      Force, meV/A        Force_low, meV/A   \n    RMSE:            7.70                 3.36                31.63                   13.22\n     MAE:            3.90                 2.27                10.31                    6.08\n  MAX_AE:          154.11                28.21              1023.20                  208.15\n -------------------------------------------------------------------------------------------------\n 2025/02/11 13:15:36 I - Last relative TEST loss change -4.72e-05/iter (averaged over last 50 step(s))\n /cmmc/ptmp/hgaafer/mambaforge/lib/python3.11/site-packages/scipy/optimize/_minimize.py:726: OptimizeWarning: Maximum number of iterations has been exceeded.\n   res = _minimize_bfgs(fun, x0, args, jac, callback, **options)\n 2025/02/11 13:15:40 I - EARLY STOPPING: Too small or even positive TEST loss change (best=-9.94e-05  / iter, last=+0.00e+00/iter, threshold = -1.00e-04/iter) within last 200 iterations. Stopping\n          Current function value: 0.000229\n          Iterations: 1000\n          Function evaluations: 1028\n          Gradient evaluations: 1028\n Fitting took 1767.17 seconds\n          Current function value: 0.000065\n          Iterations: 1000\n          Function evaluations: 1023\n          Gradient evaluations: 1023\n Fitting took 1998.61 seconds\n          Current function value: 0.000044\n          Iterations: 1000\n          Function evaluations: 1024\n          Gradient evaluations: 1024\n Fitting took 3360.17 seconds\n          Current function value: 0.000031\n          Iterations: 1000\n          Function evaluations: 1010\n          Gradient evaluations: 1010\n Fitting took 2765.05 seconds\n          Current function value: 0.000024\n          Iterations: 1000\n          Function evaluations: 1013\n          Gradient evaluations: 1013\n Traceback (most recent call last):\n   File \"/cmmc/ptmp/hgaafer/mambaforge/bin/pacemaker\", line 401, in \u003cmodule\u003e\n     main(sys.argv[1:])\n   File \"/cmmc/ptmp/hgaafer/mambaforge/bin/pacemaker\", line 248, in main\n     general_fit.fit()\n   File \"/cmmc/ptmp/hgaafer/mambaforge/lib/python3.11/site-packages/pyace/generalfit.py\", line 481, in fit\n     self.target_bbasisconfig = self.ladder_fitting(self.initial_bbasisconfig, self.target_bbasisconfig)\n                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n   File \"/cmmc/ptmp/hgaafer/mambaforge/lib/python3.11/site-packages/pyace/generalfit.py\", line 509, in ladder_fitting\n     current_bbasisconfig = self.cycle_fitting(current_bbasisconfig)\n                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n   File \"/cmmc/ptmp/hgaafer/mambaforge/lib/python3.11/site-packages/pyace/generalfit.py\", line 564, in cycle_fitting\n     current_bbasisconfig = self.fit_backend.fit(\n                            ^^^^^^^^^^^^^^^^^^^^^\n   File \"/cmmc/ptmp/hgaafer/mambaforge/lib/python3.11/site-packages/pyace/fitadapter.py\", line 129, in fit\n     raise e\n   File \"/cmmc/ptmp/hgaafer/mambaforge/lib/python3.11/site-packages/pyace/fitadapter.py\", line 96, in fit\n     fit_res = self.run_tensorpot_fit(bbasisconfig, dataframe, loss_spec, fit_config,\n               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n   File \"/cmmc/ptmp/hgaafer/mambaforge/lib/python3.11/site-packages/pyace/fitadapter.py\", line 236, in run_tensorpot_fit\n     self.fitter.fit(dataframe, test_df=test_dataframe, niter=fit_config[FIT_NITER_KW],\n   File \"/cmmc/ptmp/hgaafer/mambaforge/lib/python3.11/site-packages/tensorpotential/fit.py\", line 125, in fit\n     self.process_test_metric()\n   File \"/cmmc/ptmp/hgaafer/mambaforge/lib/python3.11/site-packages/tensorpotential/fit.py\", line 318, in process_test_metric\n     self.test_metric_callback(curr_test_metrics_data)\n   File \"/cmmc/ptmp/hgaafer/mambaforge/lib/python3.11/site-packages/pyace/generalfit.py\", line 410, in test_metric_callback\n     self.detect_early_stopping(mode='test')\n   File \"/cmmc/ptmp/hgaafer/mambaforge/lib/python3.11/site-packages/pyace/generalfit.py\", line 465, in detect_early_stopping\n     raise TestLossChangeTooSmallException(msg)\n pyace.generalfit.TestLossChangeTooSmallException: EARLY STOPPING: Too small or even positive TEST loss change (best=-9.94e-05  / iter, last=+0.00e+00/iter, threshold = -1.00e-04/iter) within last 200 iterations. Stopping\n Exception: Potential file output_potential.yaml doesn't existsLoading B-basis from 'output_potential.yaml'\n Traceback (most recent call last):\n   File \"/cmmc/ptmp/hgaafer/mambaforge/bin/pace_yaml2yace\", line 28, in \u003cmodule\u003e\n     bbasis = ACEBBasisSet(input_yaml_filename)\n              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n ValueError: Potential file output_potential.yaml doesn't exists\n```\n","author":{"url":"https://github.com/HaithamGaafer","@type":"Person","name":"HaithamGaafer"},"datePublished":"2025-02-13T16:42:54.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/86/python-ace/issues/86"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:05f26a3f-8e40-30e7-e91c-c79720deab62
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB626:10F0F5:415B29:5B8819:698DF2FE
html-safe-nonceaf3bf3d3909ce21458616fb288525d65185f08441881df2e3ce684a7d4c01321
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNjI2OjEwRjBGNTo0MTVCMjk6NUI4ODE5OjY5OERGMkZFIiwidmlzaXRvcl9pZCI6IjcyMjQ0NjkxMTUwODcwNjA0NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac9e939a7934aaa289046a5bad1a6f899a2764f55d55f672105cfe2505f0450b1a
hovercard-subject-tagissue:2851574357
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/ICAMS/python-ace/86/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f73976d4674258ca87c09a2e17f4d99fe59b215f008aec2792da2b9d5006e6c0/ICAMS/python-ace/issues/86
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f73976d4674258ca87c09a2e17f4d99fe59b215f008aec2792da2b9d5006e6c0/ICAMS/python-ace/issues/86
og:image:altI have been using the min_relative_train_loss_per_iter and min_relative_test_loss_per_iter in my fittings but during the ladder scheme fitting when the early stopping is triggered at the same time ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameHaithamGaafer
hostnamegithub.com
expected-hostnamegithub.com
Noneae22ef6ad27c5aeb770c5acd314c5724055bb23a663877aafdaaa50ed317ba34
turbo-cache-controlno-preview
go-importgithub.com/ICAMS/python-ace git https://github.com/ICAMS/python-ace.git
octolytics-dimension-user_id57955390
octolytics-dimension-user_loginICAMS
octolytics-dimension-repository_id429776445
octolytics-dimension-repository_nwoICAMS/python-ace
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id429776445
octolytics-dimension-repository_network_root_nwoICAMS/python-ace
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee545f5becd5b3ce9b429b68c3f994ad93c680ddb
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/ICAMS/python-ace/issues/86#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FICAMS%2Fpython-ace%2Fissues%2F86
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FICAMS%2Fpython-ace%2Fissues%2F86
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=ICAMS%2Fpython-ace
Reloadhttps://patch-diff.githubusercontent.com/ICAMS/python-ace/issues/86
Reloadhttps://patch-diff.githubusercontent.com/ICAMS/python-ace/issues/86
Reloadhttps://patch-diff.githubusercontent.com/ICAMS/python-ace/issues/86
ICAMS https://patch-diff.githubusercontent.com/ICAMS
python-acehttps://patch-diff.githubusercontent.com/ICAMS/python-ace
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2FICAMS%2Fpython-ace
Fork 26 https://patch-diff.githubusercontent.com/login?return_to=%2FICAMS%2Fpython-ace
Star 101 https://patch-diff.githubusercontent.com/login?return_to=%2FICAMS%2Fpython-ace
Code https://patch-diff.githubusercontent.com/ICAMS/python-ace
Issues 28 https://patch-diff.githubusercontent.com/ICAMS/python-ace/issues
Pull requests 4 https://patch-diff.githubusercontent.com/ICAMS/python-ace/pulls
Actions https://patch-diff.githubusercontent.com/ICAMS/python-ace/actions
Projects 0 https://patch-diff.githubusercontent.com/ICAMS/python-ace/projects
Security 0 https://patch-diff.githubusercontent.com/ICAMS/python-ace/security
Insights https://patch-diff.githubusercontent.com/ICAMS/python-ace/pulse
Code https://patch-diff.githubusercontent.com/ICAMS/python-ace
Issues https://patch-diff.githubusercontent.com/ICAMS/python-ace/issues
Pull requests https://patch-diff.githubusercontent.com/ICAMS/python-ace/pulls
Actions https://patch-diff.githubusercontent.com/ICAMS/python-ace/actions
Projects https://patch-diff.githubusercontent.com/ICAMS/python-ace/projects
Security https://patch-diff.githubusercontent.com/ICAMS/python-ace/security
Insights https://patch-diff.githubusercontent.com/ICAMS/python-ace/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/ICAMS/python-ace/issues/86
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/ICAMS/python-ace/issues/86
pacemaker crashes when early stopping and maximum iterations flags are raised at the same timehttps://patch-diff.githubusercontent.com/ICAMS/python-ace/issues/86#top
https://github.com/HaithamGaafer
https://github.com/HaithamGaafer
HaithamGaaferhttps://github.com/HaithamGaafer
on Feb 13, 2025https://github.com/ICAMS/python-ace/issues/86#issue-2851574357
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.