... append(1.0)
except Exception:
rewards.append(0.0)
return rewards
def equation_reward_func(completions, target, nums, **kwargs):
"""
Evaluates completions based on:
2. Mathematical correctness of the answer
Args:
completions (list[str]): Generated outputs
target (list[str ...
Search found 83 matches: evaluates
Searched query: evaluates
- Wed Feb 05, 2025 3:51 am
- Forum: latest AI news
- Topic: reproduced DeepSeek R1-Zero for < $30 !!!
- Replies: 9
- Views: 12243
- Sat Jan 25, 2025 5:21 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Antonio... FiveTouch posts are gone?
- Replies: 15
- Views: 34065
Re: Antonio... FiveTouch posts are gone?
... the same record, so that the same record is found when different search values are passed to DbSeek().
If no parameters are passed, OrdKeyAdd() evaluates the index expresssion with the data of the current record to obtain <xIndexValue>. The record is added to the index when it matches the FOR ...
If no parameters are passed, OrdKeyAdd() evaluates the index expresssion with the data of the current record to obtain <xIndexValue>. The record is added to the index when it matches the FOR ...
- Fri Jan 24, 2025 10:37 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: Using new Class TDeepSeek for documenting
- Replies: 29
- Views: 4832
Re: Using new Class TDeepSeek for documenting
... internal use, but can be used in custom codeblocks within TXBrowse)
nValue := oBrw:SafeEval( 0, { || Val( oBrw:ArrCell( 1, 1 ) ) } ) // Safely evaluates Val() on a cell, returns 0 if Val() fails.
content_copy
download
Use code with caution.
Harbour
101. AddVar( uKey, uVal )
Description: Allows ...
nValue := oBrw:SafeEval( 0, { || Val( oBrw:ArrCell( 1, 1 ) ) } ) // Safely evaluates Val() on a cell, returns 0 if Val() fails.
content_copy
download
Use code with caution.
Harbour
101. AddVar( uKey, uVal )
Description: Allows ...
- Fri Jan 24, 2025 10:28 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: Using new Class TDeepSeek for documenting
- Replies: 29
- Views: 4832
Re: Using new Class TDeepSeek for documenting
... content_copy
download
Use code with caution.
Harbour
58. SafeEval( RetVal_ifFailed, bBlock, params_for_bBlock, ... )
Description: Safely evaluates a codeblock, returning a default value if an error occurs (internal method).
Parameters:
RetVal_ifFailed: - Value to return if codeblock ...
download
Use code with caution.
Harbour
58. SafeEval( RetVal_ifFailed, bBlock, params_for_bBlock, ... )
Description: Safely evaluates a codeblock, returning a default value if an error occurs (internal method).
Parameters:
RetVal_ifFailed: - Value to return if codeblock ...
- Sat Jan 18, 2025 10:24 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Using new Class TDeepSeek for documenting
- Replies: 29
- Views: 4832
Re: Using new Class TDeepSeek for documenting
... gain event.
- **`LostFocus(hWndGetFocus)`**: Handles the focus loss event.
- **`lValid()`**: Validates the control's value.
- **`ForWhen()`**: Evaluates the `WHEN` clause of the control.
#### **Drag and Drop**
- **`DragBegin(nRow, nCol, nKeyFlags)`**: Begins the drag operation.
- **`MResize(nType ...
- **`LostFocus(hWndGetFocus)`**: Handles the focus loss event.
- **`lValid()`**: Validates the control's value.
- **`ForWhen()`**: Evaluates the `WHEN` clause of the control.
#### **Drag and Drop**
- **`DragBegin(nRow, nCol, nKeyFlags)`**: Begins the drag operation.
- **`MResize(nType ...
- Fri Jan 17, 2025 10:48 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Using new Class TDeepSeek for documenting
- Replies: 29
- Views: 4832
Re: Using new Class TDeepSeek for documenting
... SetThemed()` | Enables or disables the themed style for the button. |
| `Html()` | Generates HTML code for the button. |
| `_Eval()` | Evaluates a codeblock with the button as a parameter. |
---
### **Key Features**
1. **Bitmap Support**: The class supports up to 4 bitmaps for different ...
| `Html()` | Generates HTML code for the button. |
| `_Eval()` | Evaluates a codeblock with the button as a parameter. |
---
### **Key Features**
1. **Bitmap Support**: The class supports up to 4 bitmaps for different ...
- Fri Jan 17, 2025 10:42 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Using new Class TDeepSeek for documenting
- Replies: 29
- Views: 4832
Re: Using new Class TDeepSeek for documenting
... nil` (no return value).
2. **`Eval( uPar1, uPar2, uPar3, uPar4, uPar5 )`**
- **Type:** Inline Method
- **Description:** This method evaluates the code block stored in `::bBlock` with up to five optional parameters. If `::bBlock` is not `nil`, it executes the code block using the `Eval ...
2. **`Eval( uPar1, uPar2, uPar3, uPar4, uPar5 )`**
- **Type:** Inline Method
- **Description:** This method evaluates the code block stored in `::bBlock` with up to five optional parameters. If `::bBlock` is not `nil`, it executes the code block using the `Eval ...
- Tue Jun 25, 2024 2:23 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: DBF editors
- Replies: 78
- Views: 15082
Re: DBF editors
... IF(EVAL(bFilter), QOut(aItem[1]), NIL ) })
In this example:
COMPILAR(cFilter) creates a code block from the filter string cFilter.
EVAL(bFilter) evaluates the code block for each item in the array aData.
QOut(aItem[1]) outputs the names of people who are older than 18.
Performance Considerations ...
In this example:
COMPILAR(cFilter) creates a code block from the filter string cFilter.
EVAL(bFilter) evaluates the code block for each item in the array aData.
QOut(aItem[1]) outputs the names of people who are older than 18.
Performance Considerations ...
- Wed Apr 24, 2024 7:14 am
- Forum: WhatsNew / Novedades
- Topic: New FTDN April 2024 (FWH 24.04)
- Replies: 1
- Views: 4029
New FTDN April 2024 (FWH 24.04)
... the error.
- Enhanced: function FW_ShowAdoError( oCn, [lSilent = .f.], [er] )
The function displays (if not silent) and/or logs error
and/or evaluates bOnError set earlier and clears the error
Returns oAdoError
- Enhanced: function Fw_OpenAdoConnection( ;
cConnStr, [lShowError], [@oErr ...
- Enhanced: function FW_ShowAdoError( oCn, [lSilent = .f.], [er] )
The function displays (if not silent) and/or logs error
and/or evaluates bOnError set earlier and clears the error
Returns oAdoError
- Enhanced: function Fw_OpenAdoConnection( ;
cConnStr, [lShowError], [@oErr ...
- Wed Jan 10, 2024 7:05 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: WebView2 Essentials: Guides, Tips & Resources
- Replies: 2
- Views: 1239
Re: WebView2 Essentials: Guides, Tips & Resources
... Sets the HTML content of the web view.
Run(): Runs the web view.
Destroy(): Destroys the web view and cleans up resources.
Eval(cScript): Evaluates a JavaScript script in the context of the web view.
Init(cScript): Initializes the web view with a JavaScript script.
GetWindow(): Retrieves ...
Run(): Runs the web view.
Destroy(): Destroys the web view and cleans up resources.
Eval(cScript): Evaluates a JavaScript script in the context of the web view.
Init(cScript): Initializes the web view with a JavaScript script.
GetWindow(): Retrieves ...
- Tue Jul 18, 2023 9:14 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Xbrowse, FastEdit y xBrw:Edit() RESUELTO
- Replies: 7
- Views: 895
Re: Xbrowse, FastEdit y xBrw:Edit() tratando de entender...
... éxito.
El Maestro Rao dice en otro post;
If oCol:nEditType is > 0 and oCol:lReadOnly is .F. ( default ) and oCol:bEditWhen is NIL (default ) or Evaluates to .T.
inline edit of the cell is automatically available (whether oBrw:lFastEdit is .T. or .F. ) ...
Methods oBrw:Edit( lAppend ) and oBrw ...
El Maestro Rao dice en otro post;
If oCol:nEditType is > 0 and oCol:lReadOnly is .F. ( default ) and oCol:bEditWhen is NIL (default ) or Evaluates to .T.
inline edit of the cell is automatically available (whether oBrw:lFastEdit is .T. or .F. ) ...
Methods oBrw:Edit( lAppend ) and oBrw ...
- Mon Jun 12, 2023 2:51 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Xbrowse : Tooltips timers
- Replies: 3
- Views: 435
Re: Xbrowse : Tooltips timers
... to the current row, which is confusing and error-prone.
In case of bCellToolTip, xbrowse first navigates to the mouse
over row and then evaluates the codeblock with mouse over column
object as parameter and returns to the current row. This
simplifies the programmer's job.
It is ...
In case of bCellToolTip, xbrowse first navigates to the mouse
over row and then evaluates the codeblock with mouse over column
object as parameter and returns to the current row. This
simplifies the programmer's job.
It is ...
- Sat Jun 10, 2023 5:54 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Fivewin and ADO
- Replies: 36
- Views: 7793
Re: Fivewin and ADO
hi,
if
oCol:nEditType is > 0 and
oCol:lReadOnly is .F. ( default ) and
oCol:bEditWhen is NIL (default ) or Evaluates to .T.
Inline Edit of the cell is automatically available (whether oBrw:lFastEdit is .T. or .F. )
you talk about oCol but i use oBro ...
oBrw:nEditTypes := EDIT_GET // work
oBrw ...
if
oCol:nEditType is > 0 and
oCol:lReadOnly is .F. ( default ) and
oCol:bEditWhen is NIL (default ) or Evaluates to .T.
Inline Edit of the cell is automatically available (whether oBrw:lFastEdit is .T. or .F. )
you talk about oCol but i use oBro ...
oBrw:nEditTypes := EDIT_GET // work
oBrw ...
- Sat Jun 10, 2023 1:57 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Fivewin and ADO
- Replies: 36
- Views: 7793
Re: Fivewin and ADO
... oCol:nEditType > 0 (usually EDIT_GET.
if
oCol:nEditType is > 0 and
oCol:lReadOnly is .F. ( default ) and
oCol:bEditWhen is NIL (default ) or Evaluates to .T.
Inline Edit of the cell is automatically available (whether oBrw:lFastEdit is .T. or .F. )
When the user presses Enter Key on a cell or ...
if
oCol:nEditType is > 0 and
oCol:lReadOnly is .F. ( default ) and
oCol:bEditWhen is NIL (default ) or Evaluates to .T.
Inline Edit of the cell is automatically available (whether oBrw:lFastEdit is .T. or .F. )
When the user presses Enter Key on a cell or ...
- Wed Nov 02, 2022 11:55 am
- Forum: WhatsNew / Novedades
- Topic: New FTDN October/Octure (FWH 22.10)
- Replies: 2
- Views: 3517
New FTDN October/Octure (FWH 22.10)
... FWH2008, bClrStd, bClrSel, bClrSelFocus are evaluated with two
parameters, viz., browse and column objects. column object is nil
when browse evaluates the blocks.However, if a column using a block using the parameters inline edit raises runtime
error. Fixed.
For previous versions from FWH2008 ...
parameters, viz., browse and column objects. column object is nil
when browse evaluates the blocks.However, if a column using a block using the parameters inline edit raises runtime
error. Fixed.
For previous versions from FWH2008 ...