BookmarkSubscribeRSS Feed
ShufeGuoding
Obsidian | Level 7

In nlp optimization, when trival errors occurs, objective function can be evaluated as infinite to get around the error. Is there the infinite constant in IML?

1 REPLY 1
Rick_SAS
SAS Super FREQ

Short answer, no.

Longer answer, I've seen people have IF-THEN statements that result in 1e6 (or -1e6) when "something bad" happens, but the mathematically preferred approach is to define constraints that prevent the algorithm from trying to evaluate the function outside of its domain.  SAS/IML supports defining matrices for linear constraints or defining general functions for more complicated constraints. Here is the portion of the doc that deals with defining constraints.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

Multiple Linear Regression in SAS

Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.

Find more tutorials on the SAS Users YouTube channel.

From The DO Loop
Want more? Visit our blog for more articles like these.
Discussion stats
  • 1 reply
  • 827 views
  • 0 likes
  • 2 in conversation