-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Making MF to be a part of ML.NET #1263
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
49 commits
Select commit
Hold shift + click to select a range
eba36bd
Complie trainer (interface) and predictor of LibMF
wschin b615e5c
Add native files and make them compiled
wschin a733492
Make MF command line working (can do train and test)
wschin a3ecdd7
Merge branch 'master' into portmf
wschin 9a776b0
Implement IEstimator and ITransformer for MF
wschin 1ecde85
Make naive test running
wschin 0f33f45
Merge branch 'portmf' of github.com:wschin/machinelearning into portmf
wschin f3dfc43
Add toy MF data set (~750 lines. 3 numbers per line.)
wschin a2d37ae
Add two tests and enable SSE
wschin 3eb9f14
SSE3 is not supported by default (need to change SSE code so we disab…
wschin ec56fb0
Merge branch 'master' into portmf
wschin 2048832
Honor recents changes on Schema
wschin 4766500
Address some comments. Hopefully this time it builds without errors.
wschin c277c3b
Address comments
wschin cf7e664
Continue addressing comments
wschin fc8ec2b
Make LIBMF a submodule
wschin 9f64dd2
No need to have copyright because LIBMF is submodule now
wschin 721879a
Add doc strings for public functions
wschin 7fe705b
Reference native part as a package
wschin 3f2ca23
Simplify one line in CMake for LIBMF
wschin edbb953
Merge branch 'master' into portmf
wschin 502c736
Use MLContext to calculate regression loss
wschin a5eeeb7
Try initialize submodules before build
wschin 7672470
Revert "Try initialize submodules before build"
wschin 6944f74
Try pull submodule again
wschin 91b421c
Try to find malloc.h on Mac
wschin af14614
Fix namespace of FFM
wschin 2b9afc4
Rename LIBMF to MatrixFactorization
wschin 30708d3
Rename files because Linux build is not able to parse their paths cor…
wschin 9dcad28
Put LIBMF's DLL into another directory rather than Microsoft.ML
wschin de6bdef
Rename LIBMF to MatrixFactorizationNative
wschin 1d3502e
Specify platform-dependent baselines and fix a package name
wschin 5867136
Make two attributes internal and change the Nuget name of LIBMF
wschin b0f541e
Move submodule update to yml files
wschin 9dd8835
Address some comments
wschin 2d60a6f
Address comments
wschin 9c332ef
Address comments
wschin 4440c32
Try not to have submodule update in yml. Azure should just work.
wschin d2d1bf8
Use the nearest channel to do check and assert
wschin aac40db
Switch back to Host in constructor because env would be used to initi…
wschin 1b199dd
Ctrl+R+G aka sort usings
wschin 01e73a5
Merge two tests and remove an empty line
wschin cc9ccb2
Massively renaming
wschin f06d094
Conduct renaming for a missing piece
wschin eafdcf8
Minor name changes
wschin 00f642d
Add NOTICE file for the use of external packages
wschin 6931444
Change package name
wschin 83b5bb3
Merge branch 'master' into portmf
wschin e8aab70
remove empty lines
wschin 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| [submodule "src/Native/LIBMFNative/libmf"] | ||
| path = src/Native/MatrixFactorizationNative/libmf | ||
| url = https://github.com/cjlin1/libmf.git | ||
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,45 @@ | ||
| ML.NET uses third-party libraries or other resources that may be | ||
| distributed under licenses different than the ML.NET software. | ||
wschin marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| In the event that we accidentally failed to list a required notice, please | ||
| bring it to our attention. Post an issue or email us: | ||
|
|
||
| [email protected] | ||
wschin marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| The attached notices are provided for information only. | ||
|
|
||
| License notice for LIBMF | ||
| ------------------------ | ||
|
|
||
| https://github.com/cjlin1/libmf | ||
|
|
||
| Copyright (c) 2014-2015 The LIBMF Project. | ||
| All rights reserved. | ||
|
|
||
| Redistribution and use in source and binary forms, with or without | ||
| modification, are permitted provided that the following conditions | ||
| are met: | ||
|
|
||
| 1. Redistributions of source code must retain the above copyright | ||
| notice, this list of conditions and the following disclaimer. | ||
|
|
||
| 2. Redistributions in binary form must reproduce the above copyright | ||
| notice, this list of conditions and the following disclaimer in the | ||
| documentation and/or other materials provided with the distribution. | ||
|
|
||
| 3. Neither name of copyright holders nor the names of its contributors | ||
| may be used to endorse or promote products derived from this software | ||
| without specific prior written permission. | ||
|
|
||
|
|
||
| THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
| ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
| LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
| A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR | ||
| CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | ||
| EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | ||
| PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | ||
| PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF | ||
| LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | ||
| NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
| SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
13 changes: 13 additions & 0 deletions
13
pkg/Microsoft.ML.MatrixFactorization/Microsoft.ML.MatrixFactorization.nupkgproj
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,13 @@ | ||
| <Project Sdk="Microsoft.NET.Sdk" DefaultTargets="Pack"> | ||
|
|
||
| <PropertyGroup> | ||
| <TargetFramework>netstandard2.0</TargetFramework> | ||
| <PackageDescription>LIBMF, the core computation library for matrix factorization in ML.NET</PackageDescription> | ||
| </PropertyGroup> | ||
|
|
||
| <ItemGroup> | ||
| <Content Include="..\common\CommonPackage.props" Pack="true" PackagePath="build\netstandard2.0\$(MSBuildProjectName).props" /> | ||
wschin marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| <Content Include="$(SourceDir)Native\MatrixFactorizationNative\libmf\COPYRIGHT" Pack="true" PackagePath=".\" /> | ||
| </ItemGroup> | ||
|
|
||
| </Project> | ||
5 changes: 5 additions & 0 deletions
5
pkg/Microsoft.ML.MatrixFactorization/Microsoft.ML.MatrixFactorization.symbols.nupkgproj
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,5 @@ | ||
| <Project DefaultTargets="Pack"> | ||
|
|
||
| <Import Project="Microsoft.ML.MatrixFactorization.nupkgproj" /> | ||
|
|
||
| </Project> |
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.
Uh oh!
There was an error while loading. Please reload this page.