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 subtract each element of a table with another table

Hi guys I'm new to lua and I'm having troubles of calculating every element of a tables but it only give me the last resulting calculation open = {1,2,3,4,5} close = {6,1,3,1,10} It only returns 1 5 where it should be a table of each elements…
2
votes
1 answer

Groovy/Grails: is there a way to make .evaluate() at all safe?

I have a situation where I need to determine eligiblity for for one object to "ride" another. The rules for the vehicles are wildly confusing, and I would like to be able to change them without restarting or recompiling my project. This works but…
Mikey
  • 4,692
  • 10
  • 45
  • 73
2
votes
2 answers

Evaluating a function pointed to by a string in R

Suppose I have the following: x <- 1:10 squared <- function(x) {x^2} y <- "squared" I want to be able to evaluate the function using the string defined by y. Something like eval(y), which I know is wrong, but will return [1] 1 4 …
Peter Bonate
  • 75
  • 1
  • 6
2
votes
1 answer

Puppeteer: How to use XPath and external Variable in evaluate function?

I am trying to use an XPath and an external variable in Puppeteer's evaluate function, but there is a problem: if I use the evaluate function with passing in the external variable then I can't pass in the XPath, if I remove the XPath everything is…
2
votes
0 answers

Calculate Accuracy Between Machine and Human

I have build my ML model in classification task, then I want to calculate the prediction by machine, compared with prediction by human. How do I get the accuracy of machine's prediction compared with human's prediction? And how many person/s did I…
2
votes
1 answer

Evaluate a path string which contains a nested movieclip in AS3

This should be fairly simple but I understand why it doesn't work. I am hoping there is a clever way to do the following: I have a string 'movieclip1.movieclip2' I have a container movieclip - Container. Now to evaluate the string normally I would…
Ben
  • 1,565
  • 1
  • 10
  • 11
2
votes
1 answer

puppeteer page.evaluate loop wait between click

I'm trying to make 1 sec wait between clic inside my loop, it not working, have you an idea how can i make that ? Thanks await page.goto("https://mywebsite.local"); page.evaluate(()=>{ let elements =…
2
votes
2 answers

Calculating values in Lua to higher accuracy

The expression print(math.pi) gives values of pi as 3.1415926535898 up to 13 decimal places on my CPU with lua 5.3. Is it possible to get value up to more number of decimal places, for example value of math.pi upto 50 decimal places. If so, what…
Maths89
  • 476
  • 3
  • 15
2
votes
1 answer

Extracting variables from expression in Lua

I have expressions in lua which contains standard metatable operations .__add,.__sub,.__mul, (+,-,*) For example a+b*xyz-cdeI am trying to extract all free variables in table. For this expression, the table will contain {a,b,xyz,cde}. Right now I…
Maths89
  • 476
  • 3
  • 15
2
votes
2 answers

Dynamically generate array of Years for data validation list Excel VBA

I am adding a Data validation dropdown list to a cell in a table and want to dynamically populate it with an array of Years beginning from Today()+1 to 10 years back. e.g. 2020,2019,2018,2017,2016,2015,2014,2013,2012,2011,2010. I tried using the…
sifar
  • 1,086
  • 1
  • 17
  • 43
2
votes
0 answers

How can I change threshold value in the evaluation of deep model?

import pandas as pd import tensorflow as tf import tempfile`` CSV_COLUMNS = [ ] train_file = '/home/nick/ test_file = '/home/nick/ def input_fn(data_file, num_epochs, shuffle): #"""Input builder function.""" df_data = pd.read_csv( …
daddy_93
  • 21
  • 3
2
votes
1 answer

Intellij "Evaluate Expression" results in NoSuchMethodException

I am trying to inspect the contents of a moderately large Scala map of objects in IntelliJ while debugging an application. I enter the following in the "Evaluate" dialog: prices.get.keys.toList.filter(k => k.startsWith("GC")), where prices is…
Karl Koster
  • 73
  • 1
  • 1
  • 7
2
votes
1 answer

tensorflow estimator evaluate much slower than training

I have a custom estimator and am trying to use some custom metrics during evaluation. However, whenever I add these metrics to evaluation, via eval_metric_ops the evaluation becomes really slow (much slower than training which is actually…
Annie
  • 71
  • 1
  • 4
2
votes
2 answers

Typescript new class by evaluate params

class A { public aCall(a: any, payload: string) {} public bCall(a: any, payload: number) {} public cCall(a: any) {} . . . } function createNewClass(aCtor: A) { // load all of the A method and remove first params // generic…
Ken
  • 25
  • 4
2
votes
2 answers

#VALUE! error referencing single cell range with Evaluate Index

I want to convert to upper case a selected range in Excel. Here's my code Dim rng As Range Set rng = Selection rng.Value = rng.Parent.Evaluate("INDEX(UPPER(" & rng.Address & "),)") It works on a large range, but gives the #VALUE! error when only a…
PBeezy
  • 1,222
  • 2
  • 17
  • 26