Learning from Few Demonstrations with Frame-Weighted Motion Generation