Skip to content

Commit ef5aa04

Browse files
Changed Method signature
1 parent 17c10bb commit ef5aa04

File tree

1 file changed

+4
-4
lines changed
  • samples/csharp/end-to-end-apps/Recommendation-MovieRecommender/MovieRecommender_Model

1 file changed

+4
-4
lines changed

samples/csharp/end-to-end-apps/Recommendation-MovieRecommender/MovieRecommender_Model/Program.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ class Program
2121
private static string TrainingDataRelativePath = $"{BaseDataSetRelativepath}/ratings_train.csv";
2222
private static string TestDataRelativePath = $"{BaseDataSetRelativepath}/ratings_test.csv";
2323

24-
private static string TrainingDataLocation = GetDataSetAbsolutePath(TrainingDataRelativePath);
25-
private static string TestDataLocation = GetDataSetAbsolutePath(TestDataRelativePath);
26-
private static string ModelPath = GetDataSetAbsolutePath(ModelRelativePath);
24+
private static string TrainingDataLocation = GetAbsolutePath(TrainingDataRelativePath);
25+
private static string TestDataLocation = GetAbsolutePath(TestDataRelativePath);
26+
private static string ModelPath = GetAbsolutePath(ModelRelativePath);
2727

2828
private static string userIdFeaturized = nameof(userIdFeaturized);
2929
private static string movieIdFeaturized = nameof(movieIdFeaturized);
@@ -148,7 +148,7 @@ public static float Sigmoid(float x)
148148
return (float)(100 / (1 + Math.Exp(-x)));
149149
}
150150

151-
public static string GetDataSetAbsolutePath(string relativeDatasetPath)
151+
public static string GetAbsolutePath(string relativeDatasetPath)
152152
{
153153
FileInfo _dataRoot = new FileInfo(typeof(Program).Assembly.Location);
154154
string assemblyFolderPath = _dataRoot.Directory.FullName;

0 commit comments

Comments
 (0)