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
2
votes
1 answer

How to evaluate string in groovy

I have following string: data = ["myKey": "myValue"] and want to evaluate it as map: def map = evaluate(data) Looks like I'm doing something wrong but I get groovy.lang.MissingMethodException: No signature of method: DUMMY.evaluate() is …
Vladimir
  • 12,753
  • 19
  • 62
  • 77
2
votes
3 answers

Double evaluation - How do I access my query column based on a variable that holds the column name?

I have a query and a list of field/column names. I want to do a sort of double loop - loop through each record in the query, and then loop through the list of field/column names and output each corresponding field. The loops should be something like…
froadie
  • 79,995
  • 75
  • 166
  • 235
2
votes
1 answer

Is there a way to inject JavaScript into WebView for latter use?

I have a JavaScript script that looks for the location of an element in page using jQuery in a loaded WebView. For some reason this script works only sometimes and I suspect that it's related to the time it takes to load the script or maybe the…
Emil Adz
  • 40,709
  • 36
  • 140
  • 187
2
votes
1 answer

model.evaluate() in Keras do not cover all datapoints

I am currently learning Keras and getting confused while using model.evaluate(). I have total 768 data points, but model.evaluate() is evaluating only 32 data points and give the accuracy of 75.52%. I also tried batch sizes of 100, 50, 20, 10 & 1,…
2
votes
1 answer

Symfony ExpressionLanguage evaluate string with dashes

I'm trying to evaluate some strings containing dashes with the symfony ExpressionLanguage component. Here is what I've got so far : ... $string = 'user.chuck-norris.getId()'; $language = new ExpressionLanguage(); $evaluated =…
Chuck Norris
  • 1,125
  • 1
  • 12
  • 28
2
votes
0 answers

Evaluate Multivariate Function on a grid for two of the variables

I should probably delete this question, since I found an answer elsewhere on stackoverflow. Using 'Vectorize' solved the problem. outer(x,y,Vectorize(model)) I'll leave this up for a bit in case this helps anyone else. The issue I had is described…
SteveK
  • 53
  • 5
2
votes
1 answer

Get progress of script tag evaluation?

I have a large javascript from a webpack build being loaded as such: I want to add a progress bar while the script loads. In chrome dev tools timeline, I can see that most of the load time is spent…
meta-meta
  • 926
  • 5
  • 11
2
votes
1 answer

Help evaluating this json string array in vb.net

{"images":[{"id":"obj_0","src":"background.jpg","width":"640","height":"480"},{"id":"obj_9","src":"elements/pipe.png","width":50,"height":44,"top":196,"left":154,"rotation":"0"},{"id":"obj_13","src":"elements/cigarette.png","width":45,"height":67,"to…
EkisPinoy
  • 23
  • 1
  • 3
2
votes
2 answers

Determine the length of this Node-set?

Javascript for Mozilla: while (result) { alert(result.childNodes[0].nodeValue); //txt=txt+result.childNodes[0].nodeValue+"
"; result=nodes.iterateNext(); } This is intended to return a series of strings from an xml file. …
Troy
  • 99
  • 1
  • 1
  • 10
2
votes
4 answers

Python 2.7 - Evaluate elements in a list to use in a for loop

Hi I am very new to Python and I'm in the process of learning about lists. Im writing a little puzzle text game that requires you to use basic commands to move from room to room (function to function). Some rooms have traps and they require an item…
Congi
  • 23
  • 3
2
votes
1 answer

Evaluate() Function Returning Error 2023, however there is no error

I am using the Evaluate() function to test a value for errors prior to placing into a cell. In my example below, this is returning Error 2023, However when I paste the string into a cell, it reads correctly with no error (will return exactly the…
Y2kShea
  • 45
  • 1
  • 6
2
votes
1 answer

Matching an XPath expression against a javascript variable

I have XML content that I need to query from within javascript. To use a simple example, here is the XML: ABC Smith, John Science Fiction
Mark Salamon
  • 569
  • 1
  • 8
  • 21
2
votes
3 answers

how to evaluate implicit (unnamed) variable in for loop?

The following works fine in JS: function GetArray() { return ["x","y","z"]; } var tmp = GetArray(); var s = ""; for (var i in tmp) { s += i+" = "+tmp[i]+"\n"; } alert(s); Which gives: 0 = x1 = y2 = z Now instead of storing GetArray()'s result in…
RocketNuts
  • 9,958
  • 11
  • 47
  • 88
2
votes
1 answer

ANTLR expressions rewrite intermediate tree

For expressions like 3+4 I would like to use the value 7 in an intermediate representation tree. I cannot work out how to get the returns value into a rewrite rule. expression returns [int v]: etc. How do I get expression.v into WR? At the moment I…
user313856
  • 21
  • 2
2
votes
1 answer

Logic / boolean expression evaluation with SQL Server (CLR)

I need to build a check on staged data (in various tables). The data field values will have to be checked against (business) rules that evaluate to a boolean. Users can define these rules with logic expressions: A > B, A > AND A < C, A > B OR A < C,…
MacMesser
  • 55
  • 4