28
votes
21
votes
Accepted
Is there any possibility to implement a structure like a ProgressIndicator into NDSolve?
Here are a few versions I use:
1)
...
16
votes
Is there any possibility to implement a structure like a ProgressIndicator into NDSolve?
You should be aware of the fact that using either StepMonitor or EvaluationMonitor could considerably slow down the execution of ...
16
votes
Monitoring Apply / @@@ over large lists
You can always transform an expression of the form Apply[f,list,level] to the (almost) equivalent Map[Apply[f],list,level]. You ...
10
votes
10
votes
Accepted
Any ergonomic tools for the command line kernel?
As I said in my comments, it is hard to implement this correctly if you aim for some advanced Dynamic features that work in the command line. However, you can ...
9
votes
How to monitor a big program?
You need to estimate and display that percentage yourself. This estimation must be part of the program you write. There is no way to do it automatically either in Mathematica or any other system. ...
9
votes
Accepted
What is an appropriate setting in NDSolve to get feedback about the progress of a long computation?
I usually use something like this:
PrintTemporary@Dynamic@{Clock@Infinity, foo};
NDSolve[<ode>, y, {t, 0, 10}, ..., StepMonitor :> (foo = t)]
I've also ...
9
votes
Improving progress bar code (10 years latter)
If you are willing to explicitly insert a call inside your computation loop to a progress updating small function, then you can do this in much simpler way without using Dynamics at all.
It is not a ...
8
votes
8
votes
Accepted
Monitoring Apply / @@@ over large lists
Probably many ways to do this. For instance, imagine you got a list of large integers
list = Table[{RandomInteger[{10^20, 10^21}]}, 10]
for which you need to check ...
7
votes
How to monitor the progress of LinearSolve?
I think I got it. MSE rules and this should be obvious had I been competent.
This is what @unlikely did in his question
...
6
votes
Any ergonomic tools for the command line kernel?
I have implemented a relatively bare-bones textual frontend for Mathematica called MathLine. It offers Readline-like text input (uses linenoise), which means command history and emacs-style editing. ...
6
votes
Accepted
6
votes
Accepted
Accuracy during training?
The loss is a more general quantity than accuracy since accuracy is only defined for classification problems. However, you can easily make a custom report function that plots the accuracy as it trains....
6
votes
6
votes
Textual progress in console?
Here is a crude progress bar demo script that has been tested in a Gnome terminal under Linux and a Powershell command prompt under Windows 10. Don't expect much because it's only a loop with a print ...
6
votes
Accepted
6
votes
Parallel Computation with the possibility of calculation failure
This is my way, based on ParallelSubmit and WaitNext.
Here is a task that may take long time to finish and fails 50% of the ...
6
votes
Accepted
progress indicator without dynamic
Here is one approach, based on @b3m2a1's excellent answer here:
...
6
votes
Monitoring Apply / @@@ over large lists
Practically speaking, this is what I actually do:
First, if I need a variable to be dynamically updated, I use a global foo. Global side effects are generally a ...
6
votes
What is an appropriate setting in NDSolve to get feedback about the progress of a long computation?
You could use Dynamic to show the value of your independent variable increasing as evaluation proceeds in NDSolve, perhaps ...
5
votes
Wagner's trick to monitor FindRoot no longer works in Mathematica version 8
First, it's probably worth adding to @Rojo's comment that EvaluationMonitor was introduced in V5, so that the functionality of Wagner's code can be achieved with
<...
5
votes
Monitor only every $n$-th step in NDSolve
if you just want a status monitor you can do like this:
Monitor[NDSolve[{y'[x] == x, y[0] == 1}, y, {x, 0, 5},
StepMonitor :> (p = x; ++n)], {n, p}]
this ...
5
votes
Accepted
Monitor only every $n$-th step in NDSolve
If only you need to reduce the number of printed lines, this Prints once every 10 instances.
...
5
votes
Access to the temporary solution in NDSolve with StepMonitor
I'm not sure how to get the mesh out of NDSolve but you can use the subprocesses described in Components and Data Structures to reimplement ...
5
votes
Plotting Your CPU Temperature in Real Time
Install the sensors command by using sudo apt-get install lm-sensors
Given the output on my system, a little string ...
5
votes
How to make a progress indicator work in ParallelTable mode in Mathematica?
As @Kuba mentioned there is a ResourceFunction called ParallelMapMonitored available in the functions repository. Here's an ...
5
votes
Monitoring Apply / @@@ over large lists
You can do something like:
Module[{i},
result = Monitor[
Table[
Pause[0.1]; f @@ i,
{i, RandomReal[1, {20, 3}]}
],
i
]
]
The ...
5
votes
How to monitor the progress of LinearSolve?
Not directly an answer, but here is an implementation of conjugate gradient for a real, symmetric and positive definite matrix $A$. It Sows the norm of the residual ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
monitoring × 116parallelization × 17
dynamic × 14
front-end × 9
list-manipulation × 8
mathematical-optimization × 8
evaluation × 7
numerical-integration × 5
plotting × 4
performance-tuning × 4
gui-construction × 4
kernel × 4
differential-equations × 3
programming × 3
notebooks × 3
machine-learning × 3
code-request × 3
memory × 3
procedural-programming × 3
equation-solving × 2
function-construction × 2
manipulate × 2
bugs × 2
import × 2
warning-messages × 2