Local likelihood modeling by adaptive weights smoothing