# Can Machine Learning Algorithms Process Contextual Features for Regression?

Take Figure 1 showing point interpolation, where point L0 is being interpolated using points L2 and L1 and the distances L11, L12, L21, and L22.

Whilst the graph shows a linear interpolation example, it is just to demo the idea whilst the Target variable is a product sum of arrays (non-linear)

Target/L0 = L1_Lag_Point * L11 + L1_Lead_Point * L12 + L2_Lag_Point * L21 + L2_Lead_Point * L22

Can a Machine Learning Algorithm understand that L11 is associated ONLY with Lagging Point L1, L12 with Leading Point L1, L21 with Lagging Point L2, and L22 with Leading Point L2?!

• It's not clear what you want to achieve. If you have formula for your interpolation points a machine learning can learn that formula yes. But its not clear what having a ML algo would achieve here. Commented Jan 25 at 12:30
• @LucasMorin, a study on the ability of different ML algorithms to understand feature association. Commented Jan 25 at 12:34
• Well that's the whole point of modern ML. However, as is, it not clear that your point are uniquely defined. Commented Jan 25 at 12:42
• In the case of this interpolation problem for instance, the question is Can a Machine Learning Algorithm understand that L11 is associated ONLY with Lagging Point L1, L12 with Leading Point L1, L21 with Lagging Point L2, and L22 with Leading Point L2?! That is a close-ended question, answered in a Yes/No manner. I understand that the general answer is yes, but for instance in case simple linear regression, the answer is no. Commented Jan 25 at 12:43
• your question is not clear enough for a human to understand how is the interpolation performed. If L12 is the middle point between L1 and L2, sure, there is a closed formula and a ML algo can learn that provided you have enough exemple. If the interpolation is more complex you'll need more info. Commented Jan 25 at 13:01