Граф коммитов

476 Коммитов

Автор SHA1 Сообщение Дата
Jonathan Tims e4ca47a7d8
Bump net6.0 target to net8.0 (#475)
Bump net6.0 target to net8.0.
2024-09-05 00:51:09 +01:00
Tom Minka 55ef60d9a8
GaussianProductOp_PointB supports TruncatedGamma (#476) 2024-09-03 23:52:54 +01:00
Tom Minka deb5869e8e
FastSumOp.ArrayAverageConditional handles nearly improper sums (#474)
ParallelScheduleTransform inserts try/catch blocks that throw InferenceException when UseLocals=true
2024-08-29 11:33:32 +01:00
Tom Minka 07fd9fe2ad
Added DenseVector.SetToMinNormSolution (#473) 2024-08-13 11:48:46 +01:00
Tom Minka 74d2f5f09a
Added MeanAccumulatorAssociative (#472) 2024-07-14 15:18:49 +01:00
Tom Minka bbe59a98aa
MeanAccumulatorSkipNaNs is Json serializable (#470) 2024-07-11 17:26:45 +01:00
Tom Minka 8600f0648d
Improved excess memory warning (#469) 2024-07-11 16:19:36 +01:00
Tom Minka 7cf7f3014b
Added MeanAccumulatorSkipNaNs (#468) 2024-07-08 23:31:17 +01:00
Tom Minka 885a5e561e
RecommenderSystem has damping (#464) 2024-03-08 11:08:22 +00:00
Tom Minka 5c5e3f08e6
DiscreteChar has ConstructionAttribute (#463)
* LoggingTransform normalizes names
* Compiler requires PointEstimate to be initialised
2024-03-07 00:21:29 +00:00
Tom Minka e44b6e33e2
MessageFcnInfo does not check for AllTriggersAttribute (#462) 2024-03-06 18:59:35 +00:00
Jonathan Tims 191c4c5965
Update release pipeline (#460)
Changes to the release framework and the addition of the net6.0-windows target require updates to the release pipeline.
2024-02-29 16:06:37 +00:00
Jonathan Tims 85c69f04ba
Enable .NET 8 (#459)
Add .NET 8 to the list of frameworks that use Rosyln code generation rather than CodeDom.
2024-02-02 12:51:50 +00:00
Tom Minka 3e567fcd0c
Scheduler fix for RecommenderSystem (#457)
* Added RecommenderSystem.largeData option.  RecommenderSystem checks evidence.
* GaussianOp.FindZeroes and GetRoots handle edge cases
* GaussianProductOp.ProductAverageConditional handles an edge case
* SemanticWebTest4 runs 2 iterations
* AndOrXorTest2 is OpenBug
2024-01-11 15:28:05 +00:00
Tom Minka 4dc332516f
Fix build errors in .NET 6 (#456) 2024-01-10 17:09:20 +00:00
Jonathan Tims 0f03d49b5e
Remove Type.GetType from InferDataContractResolver (#454)
For compliance, we do not want to apply Type.GetType to any data string we are given in-case it leads to harmful types being used. Even using Type.GetType and then checking the type afterwards is not compliant because it may inadvertently load assemblies we did not intend.

Therefore we create an explicit list of allowed types, and parse the type string to direct construction of the required type from the allowed list.

The nice thing about constructing directly from the allowed list is that even if there is a bug in the parsing code, or the string has been tampered with, it is impossible for us to end up with a type that is not a combination of types on the allowed list.
2024-01-03 16:05:36 +00:00
Tom Minka 2bcf59d05c
Added DiscreteEstimator.GetMaximumVarianceOfLog (#452) 2023-11-18 14:39:48 +00:00
Jonathan Tims 22aec07367
Remove BinaryFormatter and replace with DataContract serialization
# problem
For compliance reasons BinaryFormatter should be removed.

# solution
Replace with DataContract serialization, which Runtime supports already.

The Recommender did not use the mapping for serializing Users and Items -- so the tests that serialize the recommender now use a custom IReader/IWriter pair to do this.
2023-10-19 20:05:13 +01:00
Jonathan Tims 89a884e6d6 w 2023-10-18 23:26:41 +01:00
Jonathan Tims 50e5d076b8 w 2023-10-18 14:51:35 +01:00
Jonathan Tims dcbb50483e w 2023-10-05 17:40:00 +01:00
Jonathan Tims 2fa8e109d7 w 2023-10-05 15:20:37 +01:00
Jonathan Tims e941d29a21 w 2023-10-04 19:45:38 +01:00
Tom Minka 5b8f332463
SequenceDistribution implements IsPartialUniform (#447) 2023-09-20 16:16:27 +01:00
Tom Minka e139be6539
Added Discrete.Truncate (#446)
* Added DiscreteEstimator.Add(DiscreteEstimator)
2023-08-07 16:04:29 +01:00
Jonathan Tims f7852106ca
Change FileArray to use DataContract serialization rather than BinaryFormatter
Change FileArray to use DataContract serialization rather than BinaryFormatter
2023-07-31 15:17:05 +01:00
Jonathan Tims e26b418057
Merge branch 'main' into jotims/pr/switch-filearray-to-use-datacontract 2023-07-31 13:09:06 +01:00
Jonathan Tims c0cdc13daf
Fix typo in test scripts specifying DistributedTests
Fix typo in test scripts specifying DistributedTests
2023-07-31 13:06:12 +01:00
Jonathan Tims 88b2020d68 w 2023-07-31 13:00:56 +01:00
Jonathan Tims f58de0d67a w 2023-07-31 11:25:05 +01:00
Tom Minka 5bd86ece6b
Fixed Rand.Sample, Vector.MaxDiff and GreaterThan (#440)
* Fixed a bug in Rand.Sample that could cause it to return a value that should have zero probability.
* Added MMath.AbsDiffAllowingNaNs
* Fixed SparseVector.MaxDiff
* DependencyGraphView, ModelView, TaskGraphView implement IDisposable
* Added missing evidence methods
* Added Vector.All(Vector, Func)
2023-05-20 18:25:36 +01:00
Tom Minka 968e3b2e8a
LogisticOp and DoublePlusOp and MaxGaussianOp handle improper messages (#439)
* Added missing evidence methods
* Added ModelCompiler.UseTracingTransform
2023-04-24 19:38:33 +01:00
Tom Minka 5b7d93b1b6
Swapped arguments of IEstimatedDistribution.GetExpectation (#438)
* Added EnumerableExtensions.TakeRandom
* Added Rand.LogGamma
* Added MMath.RisingFactorialLn
* Moved GammaProbBetween to MMath
* Added missing overload of DiscreteEstimator.Add
* CSharpWriter writes nicer array initializers
* GaussianProductOpBase.AAverageConditional handles uniform Product
* Increased accuracy of TruncatedGamma.GetMeanPower
* Improved accuracy of GaussianFromMeanAndVarianceOp.VarianceAverageConditional
* Improved accuracy of Gamma.FromDerivatives and GetDerivatives
* Improved accuracy of IsBetweenGaussianOp.XAverageConditional and GammaPower.GetLogMeanPower
* Increased accuracy of MMath.GammaUpper, TruncatedGamma.GetLogProb
* Improved accuracy of MMath.GammaProbBetween
* Improved accuracy of Gamma.GetLogProb, GetLogNormalizer, GammaPower.GetLogProb
* TruncatedGamma_GetMeanPower_WithinBounds is no longer OpenBug
* GammaUpper_IsDecreasingInX is OpenBug
2023-03-25 18:07:52 +00:00
Andrii Kurdiumov 2354ca6056
Add comment to Python test project about solution config (#437) 2023-03-09 16:30:21 +00:00
Jonathan Tims cd422070bc
Fix Visualizer NuGet (#435)
# problem
The way the ".pdb" is specified currently doesn't work for projects with multiple target platforms (OutDir is not populated).

# solution
Override the way we do it for other projects, and add entries for each target platform we have.
2023-01-08 20:55:41 +00:00
Jonathan Tims b904a5beb9
Add .net6.0-windows as a target (#433)
Add .net6.0-windows as a target so that Visualizer features are available on .NET 6.0 when targeting Windows (while preserving the cross-platform net6.0 target).

I have changed our minimum .NET 4xx dependency from net462 to net472 because this is the minimum version supported by the version of the automatic graph layout package that supports net6.0-windows.

It is possible to still use net462 and in this case to use the previous version of automatic graph layout; but the increased complexity doesn't seem worth it.
2023-01-06 10:19:03 +00:00
Tom Minka ce7e42a028
Updated factor documentation (#432) 2023-01-03 13:53:38 +00:00
Tom Minka 3a11b4a1aa
Fix last change to StocAnalysisTransform (#431) 2022-12-31 20:07:44 +00:00
Anthony Puppo 26a78040c1
Add .NET 7 check to runningOnNetCore assignment (#430) 2022-12-31 16:19:33 +00:00
Tom Minka 8b7c7c54e1
Power operator and Math.Pow support a constant base variable. (#429) 2022-12-30 13:14:00 +00:00
Jonathan Tims 5105345558
Fix some causes of Arithmetic Overflow exceptions (when running with checked arithmetic) (#426)
Co-authored-by: Tom Minka <8955276+tminka@users.noreply.github.com>
2022-12-21 14:54:19 +00:00
Tom Minka fb7dbc00ac
ModelBuilder inserts checked expressions (#425)
* ModelCompiler handles checked expressions
* StocAnalysisTransform replaces constraint assignments with Constrain.Equal
* Fixed VariablePointOpBase.LogEvidenceRatio
* Fixed ConstrainEqualOp.AverageLogFactor
2022-11-11 03:06:23 +00:00
Tom Minka a4f7e2a4b8
all-compiler-options uses ReleaseFull (#424) 2022-11-07 09:48:53 +00:00
Tom Minka 88a13d8fb6
Added ClassifierModels.DenseBinaryVectorModel (#423)
* Improved accuracy of Gamma.FromDerivatives
2022-11-01 16:37:09 +00:00
Tom Minka 4d5ced56ec
EstimatedDistribution ctor doesn't wrap ITruncatableDistribution (#422) 2022-10-21 08:36:32 +01:00
Tom Minka 9eed4e8e93
Added Interval arithmetic classes (#421) 2022-10-19 12:13:34 +01:00
Tom Minka 9d4f267962
Resolve warnings (#419) 2022-09-12 21:39:48 +01:00
Pavel Myshkov 479f2f0d31
Merge pull request #418 from dotnet/pmyshkov/allow-empty-logsumexp
Return negative infinity in logsumexp on empty input
2022-09-10 14:38:27 +01:00
Pavel Myshkov d39c5863f0 Return negative infinity in logsumexp on empty input 2022-09-10 13:44:30 +01:00
Pavel Myshkov 41f829d89d
Merge pull request #417 from dotnet/pmyshkov/support-null-tostring
Support null values in PropertiesToString
2022-08-31 12:39:16 +01:00