-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Field-aware factorization machine to estimator #912
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
b53d09e
FAFM to extend TrainerEstimatorBase
sfilipi d7c942d
Merge branch 'master' into ffmEstimator
sfilipi 6358777
support for an array of features
sfilipi 0e31686
Merge branch 'master' into ffmEstimator
sfilipi 67f41a3
incorporating metadata in the columns
sfilipi d4f5413
checkign whether any new regressions due to the work.
sfilipi 26691e3
reverting the change on IPredictionTransformer taking an array of fea…
sfilipi 5890b11
renaming the interface for transformers with feature column informati…
sfilipi 174e75d
Fixing thy space.
sfilipi 65a6296
Incorporating Pete's fix about the unecessary creation of getters
sfilipi 492a890
fixing comments.
sfilipi e86cfb9
merging from master
sfilipi 3d4858d
post merge fixes
sfilipi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for more information. | ||
|
||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
using Microsoft.ML.Runtime; | ||
using Microsoft.ML.Runtime.Data; | ||
using Microsoft.ML.Runtime.Training; | ||
|
||
namespace Microsoft.ML.Core.Prediction | ||
{ | ||
/// <summary> | ||
/// Holds information relevant to trainers. It is passed to the constructor of the<see cref="ITrainerEstimator{IPredictionTransformer, IPredictor}"/> | ||
/// holding additional data needed to fit the estimator. The additional data can be a validation set or an initial model. | ||
/// This holds at least a training set, as well as optioonally a predictor. | ||
/// </summary> | ||
public class TrainerEstimatorContext | ||
{ | ||
/// <summary> | ||
/// The validation set. Can be <c>null</c>. Note that passing a non-<c>null</c> validation set into | ||
/// a trainer that does not support validation sets should not be considered an error condition. It | ||
/// should simply be ignored in that case. | ||
/// </summary> | ||
public IDataView ValidationSet { get; } | ||
|
||
/// <summary> | ||
/// The initial predictor, for incremental training. Note that if a <see cref="ITrainerEstimator{IPredictionTransformer, IPredictor}"/> implementor | ||
/// does not support incremental training, then it can ignore it similarly to how one would ignore | ||
/// <see cref="ValidationSet"/>. However, if the trainer does support incremental training and there | ||
/// is something wrong with a non-<c>null</c> value of this, then the trainer ought to throw an exception. | ||
/// </summary> | ||
public IPredictor InitialPredictor { get; } | ||
|
||
/// <summary> | ||
/// Initializes a new instance of <see cref="TrainerEstimatorContext"/>, given a training set and optional other arguments. | ||
/// </summary> | ||
/// <param name="validationSet">Will set <see cref="ValidationSet"/> to this value if specified</param> | ||
/// <param name="initialPredictor">Will set <see cref="InitialPredictor"/> to this value if specified</param> | ||
public TrainerEstimatorContext(IDataView validationSet = null, IPredictor initialPredictor = null) | ||
{ | ||
Contracts.CheckValueOrNull(validationSet); | ||
Contracts.CheckValueOrNull(initialPredictor); | ||
|
||
ValidationSet = validationSet; | ||
InitialPredictor = initialPredictor; | ||
} | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No documentation? #Pending
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is there? Are you looking at iteration 10?
In reply to: 218905403 [](ancestors = 218905403)