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
4
votes
3 answers

evaluate stripos(), what is the difference between !== FALSE and === TRUE?

I have this issue with a string: $val = 'NOT NULL'; if(stripos($val, 'NULL') !== FALSE){ echo "IS $val"; } It evaluates fine, but if I use === TRUE as evaluator, things go wrong. The answer eludes me, please help me understand.
derei
  • 193
  • 2
  • 4
  • 17
4
votes
2 answers

Store multiple DOM Elements in an Array with CasperJS

For the last couple of hours I have been trying to query DOM elements and store them in an array with CasperJS, so then after that, I can loop through them and fire a click event. Let's say, my markup is like this:
  • One
peduarte
  • 1,667
  • 3
  • 16
  • 24
4
votes
2 answers

weka: how to get class name from testing single instance

i want to make a single test for single instance i use j48 in FilteredClassifier like this: Remove rm = new Remove(); rm.setAttributeIndices("1"); // remove 1st attribute // classifier J48 j48 = new J48(); j48.setUnpruned(true); // using an unpruned…
Adir
  • 55
  • 1
  • 6
4
votes
1 answer

Groovy: Timeduration-Subtraction evaluated from string

My script reads a string from a file and evaluates it to work as TimeDuration within TimeCategory. If the string starts with a "-" it throws an Exception. My reduced script: import groovy.time.TimeCategory; String string = "-1.day" Date now = new…
4
votes
3 answers

Python: Math expression parsing

Python: So I am working on a program (which is a class assignment) that will take an expression such as 3/4/5 or 32432/23423/2354325 or 3425*343/254235 or 43252+34254-2435, etc(for all operators from +,-,/,*). and will solve the expression. I CANT…
SeesSound
  • 503
  • 4
  • 13
  • 24
4
votes
3 answers

Library for evaluating logical expressions on Java objects

Let's say I have the following class: class Person { int age; String city; Collection friends; Person spouse; } I need a library which would allow me to evaluate whether a logical expression is true on a given Person object.…
Alex
  • 1,041
  • 3
  • 14
  • 32
4
votes
2 answers

Xpath evaluate count in "[ ]"

i have class with the members - private Document myDoc; XPath xpath = XPathFactory.newInstance().newXPath(); i try to use evaluate function - Object result = xpath.evaluate(expression, this.myDoc, XPathConstants.NODESET); when…
URL87
  • 10,667
  • 35
  • 107
  • 174
3
votes
4 answers

Coldfusion syntax - how to use Evaluate

I'm trying to determine if a variable with a variable name is defined. Please help with my syntax... my attempts so far:
earachefl
  • 1,880
  • 7
  • 31
  • 55
3
votes
2 answers

Proper syntax for 'curly' brackets after the pipe operator in R

Forgive me for asking what might be a simple question, perhaps I am misunderstanding how the curly brackets {} work specifically in R, but I am seeing some odd behavior - likely due to my own misunderstandings - and wanted to reach out to the…
Gregg-G
  • 45
  • 4
3
votes
1 answer

Modelica Evaluate=true

From the Modelica documentation, it seems annotation Evaluate only has an effect on parameters: https://build.openmodelica.org/Documentation/ModelicaReference.Annotations.Evaluate.html Using the Dymola variable editor, I can conveniently set the…
Priyanka
  • 559
  • 3
  • 13
3
votes
1 answer

Matching the knitr document environment in a custom engine

I was interested in making an engine for knitr that would pre-process code chunks before sending them for evaluation with the following steps: pre-process options$code evaluate code with evaluate::evaluate() with the parent environment format the…
ZNK
  • 2,196
  • 1
  • 19
  • 25
3
votes
3 answers

How to implement build in function .eval() with recursive function

Hei Coders, I have a string "1+1", with javascript build in function eval() i can do eval("1+1") so the return value will be 2 But how about if i want to implement this concept to recursive function in javascript? function evaluate(str)…
Onesinus Saut
  • 314
  • 5
  • 18
3
votes
1 answer

Convert text formula of a function to a 'real' formula

I have in cell A1 the formula VLOOKUP(A2;Table3[#All];3;FALSE). I am struggling to find a way to output the result of the previous formula in B1. So apparently, you can calculate a text formula using the function "Evaluate" accessible only with VBA…
Takichiii
  • 453
  • 4
  • 14
  • 27
3
votes
3 answers

php - convert single quoted string to double quoted

Been searching here and google for over an hour, can't seem to find the answer to this. I have a string returned from a database query which contains variables, however it appears that these strings are all returned single-quoted and therefore the…
crankshaft
  • 2,607
  • 4
  • 45
  • 77
3
votes
4 answers

Tensorflow evaluation frequency

I am using the train_and_evaluate function in tensorflow and want to make the eval step happen more frequently (either by the global step or time elapsed). This is my code (model function is not shown). def get_classifier(batch_size): config =…
BenJacob
  • 957
  • 10
  • 31