Questions tagged [evaluate]

execution of evaluations of expressions or evaluation functions. Use tag evaluation for rules, algorithms, and strategies of the evaluation.

What is it?

Evaluation is about rules, algorithms and strategies used for the evaluation of expressions or the computation of evaluation functions.

This tag may should be used for the execution of evaluations.

Related tags

  • Prefer the tag if the question is about rules, algorithms and strategies used for the evaluation of expressions or the computation of evaluation functions.
  • For more specific questions use tag

See also:

470 questions
5
votes
2 answers

Mathematical expression (string) to number in Java

I'm trying to find something like Java Embedding Plugin (JEP) that can evaluate a mathematical formula (string) and give back the answer. But it should also calculate a variable, for example: (25+36+x)*2 = 25 should give: x = -11 A little like…
Berty
  • 1,081
  • 1
  • 18
  • 49
5
votes
1 answer

CommandID for 'Debug: evaluate' in Visual Studio Code not found

I want to add a keyboard shortcut for the command 'Debug: evaluate' in Visual Studio Code. Unfortunately, the command ID for the command 'Debug: evaluate' is not documented. Did someone know where to find the commandId ?
poulo
  • 55
  • 5
5
votes
1 answer

Antlr4: Evaluate math functions f(x)

last days i was working on my grammar to be able to calculate normal expressions like: 2+2*5; 2^2 or set variables like y=5+5; etc. Now i want to parse functions like f(a,b)=2*a*b; and then call them later like f(5,7); Im having some troubles with…
FelRPI
  • 429
  • 6
  • 15
5
votes
1 answer

Template::Toolkit don't evaluate variable as string

I'm using Template::Toolkit and within a for loop I am trying to change the timezone of an object: [%- FOR item IN c.user.items -%] [% item.date.set_time_zone(c.user.timezone.name) %] Date: [% item.date %]
[% END %] It works and it…
srchulo
  • 5,143
  • 4
  • 43
  • 72
5
votes
1 answer

casperjs: evaluating document.querySelector returns a null

I'm using the waitForSelector() and captureSelector() methods in CasperJS to wait for and select an element using a CSS selector, then save a screenshot of it. However, I'm finding that because the css background has been set to transparent, the…
3cheesewheel
  • 9,133
  • 9
  • 39
  • 59
5
votes
4 answers

Does .Value = .Value act similar to Evaluate() function in VBA?

Consider the following snippet. It writes the same formula to two cells A1 and A2 Sub Main() With Range("A1") .Formula = "=1+1" End With With Range("A2") .Formula = "=1+1" .Value = .Value End With End…
user2140173
5
votes
4 answers

Evaluate many functions using one data in R

I know that I can evaluate one function with many data using apply, but can I evaluate many functions using one data? Using sapply i can get: sapply(list(1:5,10:20,5:18), sum) but I want somethnig like this: sapply(1:5, list(sum, min,max)) and…
bartektartanus
  • 15,284
  • 6
  • 74
  • 102
5
votes
3 answers

Set value of --args from within R session

I would like to use the evaluate package to simulate executing (lots of) r-scripts while recording the outputs using evaluate. Evaluate is designed to do exactly this and it works almost out of the box. However, when using Rscript, the user passes…
Jeroen Ooms
  • 31,998
  • 35
  • 134
  • 207
4
votes
1 answer

Inspecting Collections in JetBrains Rider Debugger using Linq functions like Select/Where

I'm debugging a rather large VB.net script in Rider. Several Dictionary and List objects are constructed and I want to inspect them in the Debugger using Evaluate Expression and query them using Linq functions like Select and Where. In JetBrains…
MacHeath
  • 108
  • 7
4
votes
2 answers

Frechet Inception Distance for DC GAN trained on MNIST Dataset

I'm starting out with GANs and I am training a DC-GAN on MNIST dataset. I want to evaluate my model using Frechet Inception Distance (FID). Since Inception network is not trained to classify MNIST digits, can I use any simple MNIST classifier or…
Nagabhushan S N
  • 6,407
  • 8
  • 44
  • 87
4
votes
2 answers

JavaScript, RegExp - replace with evaluated expression involving tagged expressions?

RegExp can replace matched patterns with replacements involving what is known as Tagged Expressions Example: var s = "... some string with full things..."; s = s.replace(/(some|full)/gi, "\"aw$1\"); which will result in '... "awsome" string with…
Radagast the Brown
  • 3,156
  • 3
  • 27
  • 40
4
votes
1 answer

Re-inspection of values in a Traceback

I am trying to do some elaborate re-inspection of a traceback and get actual values from the objects that are failing to return more (better?) information along with the traceback. The case scenario is in a function that I import and execute that…
alfredodeza
  • 5,058
  • 4
  • 35
  • 44
4
votes
3 answers

VBA Evaluate function with string arguments

I have this function working ( It returns the row where the text DK001 sits in the ID range) Found = Application.Evaluate("=IF(ID=""DK001"",ROW(ID),""x"")") I would like to feed the searchcriteria (e.g. DK001) as a string, like Found =…
Mats Olsson
  • 101
  • 1
  • 2
  • 10
4
votes
7 answers

Why doesn't my javascript function throw up an error?

After invoking my function, I was startled that my function didn't throw up an error due having a variable & using a variable not define in the function's scope. My question: Why doesn't my function throw an undefined,error, or the like? Shouldn't…
4
votes
2 answers

Haskell, lambda calculus for Evaluation

(Figure 1) A part of the simply typed lambda calculus (Figure 1), it is implemented in Haskell as given below. evaluate expression = do case expression of (Application (Lambda x ltype term) value) | isValue value = True ->…
IssamLaradji
  • 6,637
  • 8
  • 43
  • 68
1 2
3
31 32