├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ ├── feature_request.md │ └── question.md ├── pull_request_template.md └── workflows │ ├── maven-macos-aarch64.yml │ ├── maven-macos-x64.yml │ ├── maven-ubuntu.yml │ └── maven-windows.yml ├── .gitignore ├── AnomalyDetection ├── Core │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── tribuo │ │ │ │ └── anomaly │ │ │ │ ├── AnomalyFactory.java │ │ │ │ ├── AnomalyInfo.java │ │ │ │ ├── Event.java │ │ │ │ ├── ImmutableAnomalyInfo.java │ │ │ │ ├── MutableAnomalyInfo.java │ │ │ │ ├── evaluation │ │ │ │ ├── AnomalyEvaluation.java │ │ │ │ ├── AnomalyEvaluationImpl.java │ │ │ │ ├── AnomalyEvaluator.java │ │ │ │ ├── AnomalyMetric.java │ │ │ │ ├── AnomalyMetrics.java │ │ │ │ └── package-info.java │ │ │ │ ├── example │ │ │ │ ├── AnomalyDataGenerator.java │ │ │ │ ├── GaussianAnomalyDataSource.java │ │ │ │ └── package-info.java │ │ │ │ ├── package-info.java │ │ │ │ └── protos │ │ │ │ ├── AnomalyInfoProto.java │ │ │ │ ├── AnomalyInfoProtoOrBuilder.java │ │ │ │ ├── EventProto.java │ │ │ │ ├── EventProtoOrBuilder.java │ │ │ │ └── TribuoAnomalyCore.java │ │ └── resources │ │ │ ├── LICENSE.txt │ │ │ ├── THIRD_PARTY_LICENSES.txt │ │ │ └── protos │ │ │ └── tribuo-anomaly-core.proto │ │ └── test │ │ ├── java │ │ └── org │ │ │ └── tribuo │ │ │ └── anomaly │ │ │ └── SerializationTest.java │ │ └── resources │ │ └── org │ │ └── tribuo │ │ └── anomaly │ │ ├── event-anomaly-431.tribuo │ │ ├── factory-anomaly-431.tribuo │ │ ├── immutableinfo-anomaly-431.tribuo │ │ └── mutableinfo-anomaly-431.tribuo ├── LibLinear │ ├── configs │ │ └── liblinear-example.xml │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── tribuo │ │ │ │ └── anomaly │ │ │ │ └── liblinear │ │ │ │ ├── LibLinearAnomalyModel.java │ │ │ │ ├── LibLinearAnomalyTrainer.java │ │ │ │ ├── LinearAnomalyType.java │ │ │ │ └── package-info.java │ │ └── resources │ │ │ ├── LICENSE.txt │ │ │ └── THIRD_PARTY_LICENSES.txt │ │ └── test │ │ ├── java │ │ └── org │ │ │ └── tribuo │ │ │ └── anomaly │ │ │ └── liblinear │ │ │ └── LibLinearAnomalyTrainerTest.java │ │ └── resources │ │ └── org │ │ └── tribuo │ │ └── anomaly │ │ └── liblinear │ │ └── liblinear-anomaly-431.tribuo ├── LibSVM │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── tribuo │ │ │ │ └── anomaly │ │ │ │ └── libsvm │ │ │ │ ├── LibSVMAnomalyModel.java │ │ │ │ ├── LibSVMAnomalyTrainer.java │ │ │ │ ├── SVMAnomalyType.java │ │ │ │ ├── package-info.java │ │ │ │ └── protos │ │ │ │ ├── LibSVMAnomalyModelProto.java │ │ │ │ ├── LibSVMAnomalyModelProtoOrBuilder.java │ │ │ │ └── TribuoAnomalyLibsvm.java │ │ └── resources │ │ │ ├── LICENSE.txt │ │ │ ├── THIRD_PARTY_LICENSES.txt │ │ │ └── protos │ │ │ └── tribuo-anomaly-libsvm.proto │ │ └── test │ │ ├── java │ │ └── org │ │ │ └── tribuo │ │ │ └── anomaly │ │ │ └── libsvm │ │ │ └── LibSVMAnomalyTrainerTest.java │ │ └── resources │ │ └── org │ │ └── tribuo │ │ └── anomaly │ │ └── libsvm │ │ └── libsvm-anomaly-431.tribuo └── pom.xml ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── CONTRIBUTORS.md ├── Classification ├── Core │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── tribuo │ │ │ │ └── classification │ │ │ │ ├── Classifiable.java │ │ │ │ ├── ClassificationOptions.java │ │ │ │ ├── ImmutableLabelInfo.java │ │ │ │ ├── Label.java │ │ │ │ ├── LabelFactory.java │ │ │ │ ├── LabelInfo.java │ │ │ │ ├── MutableLabelInfo.java │ │ │ │ ├── TrainTestHelper.java │ │ │ │ ├── WeightedLabels.java │ │ │ │ ├── baseline │ │ │ │ ├── DummyClassifierModel.java │ │ │ │ ├── DummyClassifierTrainer.java │ │ │ │ └── package-info.java │ │ │ │ ├── ensemble │ │ │ │ ├── AdaBoostTrainer.java │ │ │ │ ├── ClassificationEnsembleOptions.java │ │ │ │ ├── FullyWeightedVotingCombiner.java │ │ │ │ ├── VotingCombiner.java │ │ │ │ └── package-info.java │ │ │ │ ├── evaluation │ │ │ │ ├── ClassifierEvaluation.java │ │ │ │ ├── ConfusionMatrix.java │ │ │ │ ├── ConfusionMetrics.java │ │ │ │ ├── LabelConfusionMatrix.java │ │ │ │ ├── LabelEvaluation.java │ │ │ │ ├── LabelEvaluationImpl.java │ │ │ │ ├── LabelEvaluationUtil.java │ │ │ │ ├── LabelEvaluator.java │ │ │ │ ├── LabelMetric.java │ │ │ │ ├── LabelMetrics.java │ │ │ │ └── package-info.java │ │ │ │ ├── example │ │ │ │ ├── CheckerboardDataSource.java │ │ │ │ ├── ConcentricCirclesDataSource.java │ │ │ │ ├── DemoLabelDataSource.java │ │ │ │ ├── GaussianLabelDataSource.java │ │ │ │ ├── InterlockingCrescentsDataSource.java │ │ │ │ ├── LabelledDataGenerator.java │ │ │ │ ├── NoisyInterlockingCrescentsDataSource.java │ │ │ │ └── package-info.java │ │ │ │ ├── package-info.java │ │ │ │ ├── protos │ │ │ │ ├── DefaultFeatureExtractorProto.java │ │ │ │ ├── DefaultFeatureExtractorProtoOrBuilder.java │ │ │ │ ├── DummyClassifierModelProto.java │ │ │ │ ├── DummyClassifierModelProtoOrBuilder.java │ │ │ │ ├── ImmutableLabelInfoProto.java │ │ │ │ ├── ImmutableLabelInfoProtoOrBuilder.java │ │ │ │ ├── LabelFeatureExtractorProto.java │ │ │ │ ├── LabelFeatureExtractorProtoOrBuilder.java │ │ │ │ ├── LabelProto.java │ │ │ │ ├── LabelProtoOrBuilder.java │ │ │ │ ├── MutableLabelInfoProto.java │ │ │ │ ├── MutableLabelInfoProtoOrBuilder.java │ │ │ │ ├── TribuoClassificationCore.java │ │ │ │ ├── ViterbiModelProto.java │ │ │ │ └── ViterbiModelProtoOrBuilder.java │ │ │ │ └── sequence │ │ │ │ ├── ConfidencePredictingSequenceModel.java │ │ │ │ ├── LabelSequenceEvaluation.java │ │ │ │ ├── LabelSequenceEvaluator.java │ │ │ │ ├── SeqTrainTest.java │ │ │ │ ├── example │ │ │ │ ├── SequenceDataGenerator.java │ │ │ │ └── package-info.java │ │ │ │ ├── package-info.java │ │ │ │ └── viterbi │ │ │ │ ├── DefaultFeatureExtractor.java │ │ │ │ ├── LabelFeatureExtractor.java │ │ │ │ ├── NoopFeatureExtractor.java │ │ │ │ ├── ViterbiModel.java │ │ │ │ ├── ViterbiTrainer.java │ │ │ │ ├── ViterbiTrainerOptions.java │ │ │ │ └── package-info.java │ │ └── resources │ │ │ ├── LICENSE.txt │ │ │ ├── THIRD_PARTY_LICENSES.txt │ │ │ └── protos │ │ │ └── tribuo-classification-core.proto │ │ └── test │ │ ├── java │ │ └── org │ │ │ └── tribuo │ │ │ └── classification │ │ │ ├── SerializationTest.java │ │ │ ├── TestLabelEvaluationUtil.java │ │ │ ├── Utils.java │ │ │ ├── baseline │ │ │ └── TestDummyClassifier.java │ │ │ ├── ensemble │ │ │ └── VotingCombinerTest.java │ │ │ ├── evaluation │ │ │ ├── ConfusionMetricsTest.java │ │ │ ├── EvaluationAggregationTests.java │ │ │ ├── LabelConfusionMatrixTest.java │ │ │ ├── LabelEvaluatorTest.java │ │ │ └── TestUtils.java │ │ │ ├── example │ │ │ └── DemoLabelDataSourceTest.java │ │ │ └── sequence │ │ │ └── viterbi │ │ │ ├── DefaultOutcomeFeatureExtractorTest.java │ │ │ └── ViterbiModelTest.java │ │ └── resources │ │ └── org │ │ └── tribuo │ │ └── classification │ │ ├── baseline │ │ └── dummyclf-431.tribuo │ │ ├── factory-clf-431.tribuo │ │ ├── fullvote-combiner-clf-431.tribuo │ │ ├── immutableinfo-clf-431.tribuo │ │ ├── label-clf-431.tribuo │ │ ├── mutableinfo-clf-431.tribuo │ │ └── vote-combiner-clf-431.tribuo ├── DecisionTree │ ├── configs │ │ └── cart-example.xml │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── tribuo │ │ │ │ └── classification │ │ │ │ └── dtree │ │ │ │ ├── CARTClassificationOptions.java │ │ │ │ ├── CARTClassificationTrainer.java │ │ │ │ ├── TrainTest.java │ │ │ │ ├── impl │ │ │ │ ├── ClassifierTrainingNode.java │ │ │ │ ├── InvertedFeature.java │ │ │ │ ├── TreeFeature.java │ │ │ │ └── package-info.java │ │ │ │ ├── impurity │ │ │ │ ├── Entropy.java │ │ │ │ ├── GiniIndex.java │ │ │ │ ├── LabelImpurity.java │ │ │ │ └── package-info.java │ │ │ │ └── package-info.java │ │ └── resources │ │ │ ├── LICENSE.txt │ │ │ └── THIRD_PARTY_LICENSES.txt │ │ └── test │ │ ├── java │ │ └── org │ │ │ └── tribuo │ │ │ └── classification │ │ │ └── dtree │ │ │ ├── TestCART.java │ │ │ └── TestClassificationEnsembles.java │ │ └── resources │ │ ├── org │ │ └── tribuo │ │ │ └── classification │ │ │ └── dtree │ │ │ ├── adaboost-clf-431.tribuo │ │ │ └── cart-clf-431.tribuo │ │ └── pure_leaf_data.csv ├── Experiments │ ├── configs │ │ ├── adaboost-example.xml │ │ ├── bagging-example.xml │ │ └── random-forest-example.xml │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── org │ │ │ └── tribuo │ │ │ └── classification │ │ │ └── experiments │ │ │ ├── AllTrainerOptions.java │ │ │ ├── ConfigurableTrainTest.java │ │ │ ├── RunAll.java │ │ │ ├── Test.java │ │ │ ├── TrainTest.java │ │ │ └── package-info.java │ │ └── resources │ │ ├── LICENSE.txt │ │ ├── THIRD_PARTY_LICENSES.txt │ │ └── org │ │ └── tribuo │ │ └── classification │ │ └── experiments │ │ └── runall.xml ├── Explanations │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── tribuo │ │ │ │ └── classification │ │ │ │ └── explanations │ │ │ │ ├── ColumnarExplainer.java │ │ │ │ ├── Explanation.java │ │ │ │ ├── TabularExplainer.java │ │ │ │ ├── TextExplainer.java │ │ │ │ ├── lime │ │ │ │ ├── LIMEBase.java │ │ │ │ ├── LIMEColumnar.java │ │ │ │ ├── LIMEExplanation.java │ │ │ │ ├── LIMEText.java │ │ │ │ ├── LIMETextCLI.java │ │ │ │ └── package-info.java │ │ │ │ └── package-info.java │ │ └── resources │ │ │ ├── LICENSE.txt │ │ │ └── THIRD_PARTY_LICENSES.txt │ │ └── test │ │ ├── java │ │ └── org │ │ │ └── tribuo │ │ │ └── classification │ │ │ └── explanations │ │ │ └── lime │ │ │ ├── LIMEColumnarTest.java │ │ │ └── MNISTDemo.java │ │ └── resources │ │ └── org │ │ └── tribuo │ │ └── classification │ │ └── explanations │ │ └── lime │ │ └── test-columnar.csv ├── FeatureSelection │ ├── pom.xml │ └── src │ │ ├── main │ │ └── java │ │ │ └── org │ │ │ └── tribuo │ │ │ └── classification │ │ │ └── fs │ │ │ ├── CMIM.java │ │ │ ├── DenseFSMatrix.java │ │ │ ├── FSMatrix.java │ │ │ ├── JMI.java │ │ │ ├── MIM.java │ │ │ ├── mRMR.java │ │ │ └── package-info.java │ │ └── test │ │ └── java │ │ └── org │ │ └── tribuo │ │ └── classification │ │ └── fs │ │ ├── CMIMTest.java │ │ ├── JMITest.java │ │ ├── MIMTest.java │ │ └── mRMRTest.java ├── LibLinear │ ├── configs │ │ └── liblinear-example.xml │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── tribuo │ │ │ │ └── classification │ │ │ │ └── liblinear │ │ │ │ ├── LibLinearClassificationModel.java │ │ │ │ ├── LibLinearClassificationTrainer.java │ │ │ │ ├── LibLinearOptions.java │ │ │ │ ├── LinearClassificationType.java │ │ │ │ ├── TrainTest.java │ │ │ │ └── package-info.java │ │ └── resources │ │ │ ├── LICENSE.txt │ │ │ └── THIRD_PARTY_LICENSES.txt │ │ └── test │ │ ├── java │ │ └── org │ │ │ └── tribuo │ │ │ └── classification │ │ │ └── liblinear │ │ │ └── TestLibLinearModel.java │ │ ├── resources │ │ ├── models │ │ │ ├── L1R_L2LOSS_SVC.model │ │ │ ├── L1R_LR.model │ │ │ ├── L2R_L1LOSS_SVC_DUAL.model │ │ │ ├── L2R_L2LOSS_SVC.model │ │ │ ├── L2R_L2LOSS_SVC_DUAL.model │ │ │ ├── L2R_LR.model │ │ │ ├── L2R_LR_DUAL.model │ │ │ ├── L2R_LR_multiclass.model │ │ │ └── MCSVM_CS.model │ │ ├── org │ │ │ └── tribuo │ │ │ │ └── classification │ │ │ │ └── liblinear │ │ │ │ └── liblinear-clf-431.tribuo │ │ ├── test_input_binary.tribuo │ │ ├── test_input_multiclass.tribuo │ │ ├── train_input_binary.tribuo │ │ └── train_input_multiclass.tribuo │ │ └── scripts │ │ ├── generate-model.sh │ │ └── generate_test_data.py ├── LibSVM │ ├── configs │ │ └── libsvm-example.xml │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── tribuo │ │ │ │ └── classification │ │ │ │ └── libsvm │ │ │ │ ├── LibSVMClassificationModel.java │ │ │ │ ├── LibSVMClassificationTrainer.java │ │ │ │ ├── LibSVMOptions.java │ │ │ │ ├── SVMClassificationType.java │ │ │ │ ├── TrainTest.java │ │ │ │ ├── package-info.java │ │ │ │ └── protos │ │ │ │ ├── LibSVMClassificationModelProto.java │ │ │ │ ├── LibSVMClassificationModelProtoOrBuilder.java │ │ │ │ └── TribuoClassificationLibsvm.java │ │ └── resources │ │ │ ├── LICENSE.txt │ │ │ ├── THIRD_PARTY_LICENSES.txt │ │ │ └── protos │ │ │ └── tribuo-classification-libsvm.proto │ │ └── test │ │ ├── java │ │ └── org │ │ │ └── tribuo │ │ │ └── classification │ │ │ └── libsvm │ │ │ └── TestLibSVM.java │ │ ├── resources │ │ ├── models │ │ │ ├── C_SVC_LINEAR.model │ │ │ ├── C_SVC_LINEAR_multiclass.model │ │ │ ├── C_SVC_POLY.model │ │ │ ├── C_SVC_POLY_multiclass.model │ │ │ ├── C_SVC_RBF.model │ │ │ ├── C_SVC_RBF_multiclass.model │ │ │ ├── C_SVC_SIGMOID.model │ │ │ ├── C_SVC_SIGMOID_multiclass.model │ │ │ ├── NU_SVC_LINEAR.model │ │ │ ├── NU_SVC_LINEAR_multiclass.model │ │ │ ├── NU_SVC_POLY.model │ │ │ ├── NU_SVC_POLY_multiclass.model │ │ │ ├── NU_SVC_RBF.model │ │ │ ├── NU_SVC_RBF_multiclass.model │ │ │ ├── NU_SVC_SIGMOID.model │ │ │ └── NU_SVC_SIGMOID_multiclass.model │ │ ├── org │ │ │ └── tribuo │ │ │ │ └── classification │ │ │ │ └── libsvm │ │ │ │ └── libsvm-clf-431.tribuo │ │ ├── test_input_binary.tribuo │ │ ├── test_input_multiclass.tribuo │ │ ├── train_input_binary.tribuo │ │ └── train_input_multiclass.tribuo │ │ └── scripts │ │ ├── generate-model.sh │ │ └── generate_test_data.py ├── MultinomialNaiveBayes │ ├── configs │ │ └── mnb-example.xml │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── tribuo │ │ │ │ └── classification │ │ │ │ └── mnb │ │ │ │ ├── MultinomialNaiveBayesModel.java │ │ │ │ ├── MultinomialNaiveBayesOptions.java │ │ │ │ ├── MultinomialNaiveBayesTrainer.java │ │ │ │ ├── TrainTest.java │ │ │ │ ├── package-info.java │ │ │ │ └── protos │ │ │ │ ├── MultinomialNaiveBayesProto.java │ │ │ │ ├── MultinomialNaiveBayesProtoOrBuilder.java │ │ │ │ └── TribuoClassificationMnb.java │ │ └── resources │ │ │ ├── LICENSE.txt │ │ │ ├── THIRD_PARTY_LICENSES.txt │ │ │ └── protos │ │ │ └── tribuo-classification-mnb.proto │ │ └── test │ │ ├── java │ │ └── org │ │ │ └── tribuo │ │ │ └── classification │ │ │ └── mnb │ │ │ └── TestMNB.java │ │ └── resources │ │ └── org │ │ └── tribuo │ │ └── classification │ │ └── mnb │ │ └── mnb-431.tribuo ├── SGD │ ├── configs │ │ ├── classification-factorization-machine.xml │ │ ├── crf-example.xml │ │ └── logistic-example.xml │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── tribuo │ │ │ │ └── classification │ │ │ │ └── sgd │ │ │ │ ├── LabelObjective.java │ │ │ │ ├── TrainTest.java │ │ │ │ ├── Util.java │ │ │ │ ├── crf │ │ │ │ ├── CRFModel.java │ │ │ │ ├── CRFOptions.java │ │ │ │ ├── CRFParameters.java │ │ │ │ ├── CRFTrainer.java │ │ │ │ ├── ChainHelper.java │ │ │ │ ├── Chunk.java │ │ │ │ ├── SeqTest.java │ │ │ │ └── package-info.java │ │ │ │ ├── fm │ │ │ │ ├── FMClassificationModel.java │ │ │ │ ├── FMClassificationOptions.java │ │ │ │ ├── FMClassificationTrainer.java │ │ │ │ ├── TrainTest.java │ │ │ │ └── package-info.java │ │ │ │ ├── kernel │ │ │ │ ├── KernelSVMModel.java │ │ │ │ ├── KernelSVMOptions.java │ │ │ │ ├── KernelSVMTrainer.java │ │ │ │ ├── TrainTest.java │ │ │ │ └── package-info.java │ │ │ │ ├── linear │ │ │ │ ├── LinearSGDModel.java │ │ │ │ ├── LinearSGDOptions.java │ │ │ │ ├── LinearSGDTrainer.java │ │ │ │ ├── LogisticRegressionTrainer.java │ │ │ │ └── package-info.java │ │ │ │ ├── objectives │ │ │ │ ├── Hinge.java │ │ │ │ ├── LogMulticlass.java │ │ │ │ └── package-info.java │ │ │ │ ├── package-info.java │ │ │ │ └── protos │ │ │ │ ├── CRFModelProto.java │ │ │ │ ├── CRFModelProtoOrBuilder.java │ │ │ │ ├── CRFParametersProto.java │ │ │ │ ├── CRFParametersProtoOrBuilder.java │ │ │ │ ├── ClassificationLinearSGDProto.java │ │ │ │ ├── ClassificationLinearSGDProtoOrBuilder.java │ │ │ │ ├── FMClassificationModelProto.java │ │ │ │ ├── FMClassificationModelProtoOrBuilder.java │ │ │ │ ├── KernelSVMModelProto.java │ │ │ │ ├── KernelSVMModelProtoOrBuilder.java │ │ │ │ └── TribuoClassificationSgd.java │ │ └── resources │ │ │ ├── LICENSE.txt │ │ │ ├── THIRD_PARTY_LICENSES.txt │ │ │ └── protos │ │ │ └── tribuo-classification-sgd.proto │ │ └── test │ │ ├── java │ │ └── org │ │ │ └── tribuo │ │ │ └── classification │ │ │ └── sgd │ │ │ ├── crf │ │ │ └── CRFTrainerTest.java │ │ │ ├── fm │ │ │ └── TestFMClassification.java │ │ │ ├── kernel │ │ │ └── TestSGDKernel.java │ │ │ └── linear │ │ │ └── TestSGDLinear.java │ │ └── resources │ │ └── org │ │ └── tribuo │ │ └── classification │ │ └── sgd │ │ ├── crf │ │ └── crf-431.tribuo │ │ ├── fm │ │ └── fm-clf-431.tribuo │ │ ├── kernel │ │ └── rbf-clf-431.tribuo │ │ └── linear │ │ ├── label-linear-sgd-4.0.2.model │ │ └── lin-clf-431.tribuo ├── XGBoost │ ├── configs │ │ └── xgboost-example.xml │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── tribuo │ │ │ │ └── classification │ │ │ │ └── xgboost │ │ │ │ ├── TrainTest.java │ │ │ │ ├── XGBoostClassificationConverter.java │ │ │ │ ├── XGBoostClassificationTrainer.java │ │ │ │ ├── XGBoostOptions.java │ │ │ │ └── package-info.java │ │ └── resources │ │ │ ├── LICENSE.txt │ │ │ └── THIRD_PARTY_LICENSES.txt │ │ └── test │ │ ├── java │ │ └── org │ │ │ └── tribuo │ │ │ └── classification │ │ │ └── xgboost │ │ │ ├── TestXGBoost.java │ │ │ └── TestXGBoostExternalModel.java │ │ ├── resources │ │ ├── models │ │ │ ├── 1.model │ │ │ ├── 10.model │ │ │ ├── 10_multiclass.model │ │ │ ├── 1_multiclass.model │ │ │ ├── 5.model │ │ │ ├── 50.model │ │ │ ├── 50_multiclass.model │ │ │ └── 5_multiclass.model │ │ ├── org │ │ │ └── tribuo │ │ │ │ └── classification │ │ │ │ └── xgboost │ │ │ │ ├── mnist_test_head.libsvm │ │ │ │ ├── transposed_mnist_test_head.libsvm │ │ │ │ ├── xgb_mnist.xgb │ │ │ │ ├── xgboost-clf-431.tribuo │ │ │ │ └── xgboost-clf-ext-431.tribuo │ │ ├── test_input_binary.tribuo │ │ ├── test_input_multiclass.tribuo │ │ ├── train_input_binary.tribuo │ │ └── train_input_multiclass.tribuo │ │ └── scripts │ │ ├── generate-model.sh │ │ └── generate_test_data.py └── pom.xml ├── Clustering ├── Core │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── tribuo │ │ │ │ └── clustering │ │ │ │ ├── ClusterID.java │ │ │ │ ├── ClusteringFactory.java │ │ │ │ ├── ClusteringInfo.java │ │ │ │ ├── ImmutableClusteringInfo.java │ │ │ │ ├── MutableClusteringInfo.java │ │ │ │ ├── evaluation │ │ │ │ ├── ClusteringEvaluation.java │ │ │ │ ├── ClusteringEvaluationImpl.java │ │ │ │ ├── ClusteringEvaluator.java │ │ │ │ ├── ClusteringMetric.java │ │ │ │ ├── ClusteringMetrics.java │ │ │ │ └── package-info.java │ │ │ │ ├── example │ │ │ │ ├── ClusteringDataGenerator.java │ │ │ │ ├── GaussianClusterDataSource.java │ │ │ │ └── package-info.java │ │ │ │ ├── package-info.java │ │ │ │ └── protos │ │ │ │ ├── ClusterIDProto.java │ │ │ │ ├── ClusterIDProtoOrBuilder.java │ │ │ │ ├── ClusteringInfoProto.java │ │ │ │ ├── ClusteringInfoProtoOrBuilder.java │ │ │ │ └── TribuoClusteringCore.java │ │ └── resources │ │ │ ├── LICENSE.txt │ │ │ ├── THIRD_PARTY_LICENSES.txt │ │ │ └── protos │ │ │ └── tribuo-clustering-core.proto │ │ └── test │ │ ├── java │ │ └── org │ │ │ └── tribuo │ │ │ └── clustering │ │ │ ├── SerializationTest.java │ │ │ └── evaluation │ │ │ └── ClusteringMetricsTest.java │ │ └── resources │ │ └── org │ │ └── tribuo │ │ └── clustering │ │ ├── clusterid-clustering-431.tribuo │ │ ├── factory-clustering-431.tribuo │ │ ├── immutableinfo-clustering-431.tribuo │ │ └── mutableinfo-clustering-431.tribuo ├── GMM │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── tribuo │ │ │ │ └── clustering │ │ │ │ └── gmm │ │ │ │ ├── GMMOptions.java │ │ │ │ ├── GMMTrainer.java │ │ │ │ ├── GaussianMixtureModel.java │ │ │ │ ├── TrainTest.java │ │ │ │ ├── package-info.java │ │ │ │ └── protos │ │ │ │ ├── GaussianMixtureModelProto.java │ │ │ │ ├── GaussianMixtureModelProtoOrBuilder.java │ │ │ │ └── TribuoClusteringGmm.java │ │ └── resources │ │ │ └── protos │ │ │ └── tribuo-clustering-gmm.proto │ │ └── test │ │ └── java │ │ └── org │ │ └── tribuo │ │ └── clustering │ │ └── gmm │ │ └── TestGMM.java ├── Hdbscan │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── tribuo │ │ │ │ └── clustering │ │ │ │ └── hdbscan │ │ │ │ ├── ExtendedMinimumSpanningTree.java │ │ │ │ ├── HdbscanCluster.java │ │ │ │ ├── HdbscanModel.java │ │ │ │ ├── HdbscanOptions.java │ │ │ │ ├── HdbscanTrainer.java │ │ │ │ ├── TrainTest.java │ │ │ │ ├── package-info.java │ │ │ │ └── protos │ │ │ │ ├── ClusterExemplarProto.java │ │ │ │ ├── ClusterExemplarProtoOrBuilder.java │ │ │ │ ├── HdbscanModelProto.java │ │ │ │ ├── HdbscanModelProtoOrBuilder.java │ │ │ │ └── TribuoClusteringHdbscan.java │ │ └── resources │ │ │ ├── LICENSE.txt │ │ │ ├── THIRD_PARTY_LICENSES.txt │ │ │ └── protos │ │ │ └── tribuo-clustering-hdbscan.proto │ │ └── test │ │ ├── java │ │ └── org │ │ │ └── tribuo │ │ │ └── clustering │ │ │ └── hdbscan │ │ │ └── TestHdbscan.java │ │ └── resources │ │ ├── Hdbscan_minClSize7_L2_k7_nt1_v4.2.model │ │ ├── basic-gaussians-predict-with-outliers.csv │ │ ├── basic-gaussians-predict.csv │ │ ├── basic-gaussians-train.csv │ │ ├── basic-gaussians.csv │ │ └── org │ │ └── tribuo │ │ └── clustering │ │ └── hdbscan │ │ └── hdbscan-431.tribuo ├── KMeans │ ├── configs │ │ └── kmeans-example.xml │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── tribuo │ │ │ │ └── clustering │ │ │ │ └── kmeans │ │ │ │ ├── KMeansModel.java │ │ │ │ ├── KMeansOptions.java │ │ │ │ ├── KMeansTrainer.java │ │ │ │ ├── TrainTest.java │ │ │ │ ├── package-info.java │ │ │ │ └── protos │ │ │ │ ├── KMeansModelProto.java │ │ │ │ ├── KMeansModelProtoOrBuilder.java │ │ │ │ └── TribuoClusteringKmeans.java │ │ └── resources │ │ │ ├── LICENSE.txt │ │ │ ├── THIRD_PARTY_LICENSES.txt │ │ │ └── protos │ │ │ └── tribuo-clustering-kmeans.proto │ │ └── test │ │ ├── java │ │ └── org │ │ │ └── tribuo │ │ │ └── clustering │ │ │ └── kmeans │ │ │ └── TestKMeans.java │ │ └── resources │ │ └── org │ │ └── tribuo │ │ └── clustering │ │ └── kmeans │ │ └── kmeans-431.tribuo └── pom.xml ├── Common ├── LibLinear │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── org │ │ │ └── tribuo │ │ │ └── common │ │ │ └── liblinear │ │ │ ├── LibLinearModel.java │ │ │ ├── LibLinearTrainer.java │ │ │ ├── LibLinearType.java │ │ │ ├── package-info.java │ │ │ └── protos │ │ │ ├── LibLinearModelProto.java │ │ │ ├── LibLinearModelProtoOrBuilder.java │ │ │ ├── LibLinearProto.java │ │ │ ├── LibLinearProtoOrBuilder.java │ │ │ └── TribuoLiblinear.java │ │ └── resources │ │ ├── LICENSE.txt │ │ ├── THIRD_PARTY_LICENSES.txt │ │ └── protos │ │ └── tribuo-liblinear.proto ├── LibSVM │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── org │ │ │ └── tribuo │ │ │ └── common │ │ │ └── libsvm │ │ │ ├── KernelType.java │ │ │ ├── LibSVMModel.java │ │ │ ├── LibSVMTrainer.java │ │ │ ├── SVMParameters.java │ │ │ ├── SVMType.java │ │ │ ├── package-info.java │ │ │ └── protos │ │ │ ├── SVMModelProto.java │ │ │ ├── SVMModelProtoOrBuilder.java │ │ │ ├── SVMNodeArrayProto.java │ │ │ ├── SVMNodeArrayProtoOrBuilder.java │ │ │ ├── SVMParameterProto.java │ │ │ ├── SVMParameterProtoOrBuilder.java │ │ │ └── TribuoLibsvm.java │ │ └── resources │ │ ├── LICENSE.txt │ │ ├── THIRD_PARTY_LICENSES.txt │ │ └── protos │ │ └── tribuo-libsvm.proto ├── NearestNeighbour │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── tribuo │ │ │ │ └── common │ │ │ │ └── nearest │ │ │ │ ├── KNNClassifierOptions.java │ │ │ │ ├── KNNModel.java │ │ │ │ ├── KNNTrainer.java │ │ │ │ ├── package-info.java │ │ │ │ └── protos │ │ │ │ ├── KNNModelProto.java │ │ │ │ ├── KNNModelProtoOrBuilder.java │ │ │ │ └── TribuoCommonKnn.java │ │ └── resources │ │ │ ├── LICENSE.txt │ │ │ ├── THIRD_PARTY_LICENSES.txt │ │ │ └── protos │ │ │ └── tribuo-common-knn.proto │ │ └── test │ │ ├── java │ │ └── org │ │ │ └── tribuo │ │ │ └── common │ │ │ └── nearest │ │ │ └── TestKNN.java │ │ └── resources │ │ ├── KNNTrainerRegressor_k3_L2_nt2_voting_streams_v4.2.model │ │ └── org │ │ └── tribuo │ │ └── common │ │ └── nearest │ │ └── knn-431.tribuo ├── SGD │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── org │ │ │ └── tribuo │ │ │ └── common │ │ │ └── sgd │ │ │ ├── AbstractFMModel.java │ │ │ ├── AbstractFMTrainer.java │ │ │ ├── AbstractLinearSGDModel.java │ │ │ ├── AbstractLinearSGDTrainer.java │ │ │ ├── AbstractSGDModel.java │ │ │ ├── AbstractSGDTrainer.java │ │ │ ├── FMParameters.java │ │ │ ├── SGDObjective.java │ │ │ ├── package-info.java │ │ │ └── protos │ │ │ ├── FMParametersProto.java │ │ │ ├── FMParametersProtoOrBuilder.java │ │ │ ├── TribuoCommonSgd.java │ │ │ └── TribuoSgd.java │ │ └── resources │ │ ├── LICENSE.txt │ │ ├── THIRD_PARTY_LICENSES.txt │ │ └── protos │ │ └── tribuo-sgd.proto ├── Trees │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── tribuo │ │ │ │ └── common │ │ │ │ └── tree │ │ │ │ ├── AbstractCARTTrainer.java │ │ │ │ ├── AbstractTrainingNode.java │ │ │ │ ├── DecisionTreeTrainer.java │ │ │ │ ├── ExtraTreesTrainer.java │ │ │ │ ├── LeafNode.java │ │ │ │ ├── Node.java │ │ │ │ ├── RandomForestTrainer.java │ │ │ │ ├── SplitNode.java │ │ │ │ ├── TreeModel.java │ │ │ │ ├── impl │ │ │ │ ├── IntArrayContainer.java │ │ │ │ └── package-info.java │ │ │ │ ├── package-info.java │ │ │ │ └── protos │ │ │ │ ├── LeafNodeProto.java │ │ │ │ ├── LeafNodeProtoOrBuilder.java │ │ │ │ ├── SplitNodeProto.java │ │ │ │ ├── SplitNodeProtoOrBuilder.java │ │ │ │ ├── TreeModelProto.java │ │ │ │ ├── TreeModelProtoOrBuilder.java │ │ │ │ ├── TreeNodeProto.java │ │ │ │ ├── TreeNodeProtoOrBuilder.java │ │ │ │ └── TribuoTree.java │ │ └── resources │ │ │ ├── LICENSE.txt │ │ │ ├── THIRD_PARTY_LICENSES.txt │ │ │ └── protos │ │ │ └── tribuo-tree.proto │ │ └── test │ │ └── java │ │ └── org │ │ └── tribuo │ │ └── common │ │ └── tree │ │ └── impl │ │ └── IntArrayContainerTest.java ├── XGBoost │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── tribuo │ │ │ │ └── common │ │ │ │ └── xgboost │ │ │ │ ├── XGBoostExternalModel.java │ │ │ │ ├── XGBoostFeatureImportance.java │ │ │ │ ├── XGBoostModel.java │ │ │ │ ├── XGBoostOutputConverter.java │ │ │ │ ├── XGBoostTrainer.java │ │ │ │ ├── package-info.java │ │ │ │ └── protos │ │ │ │ ├── TribuoXgboost.java │ │ │ │ ├── XGBoostExternalModelProto.java │ │ │ │ ├── XGBoostExternalModelProtoOrBuilder.java │ │ │ │ ├── XGBoostModelProto.java │ │ │ │ ├── XGBoostModelProtoOrBuilder.java │ │ │ │ ├── XGBoostOutputConverterProto.java │ │ │ │ └── XGBoostOutputConverterProtoOrBuilder.java │ │ └── resources │ │ │ ├── LICENSE.txt │ │ │ ├── THIRD_PARTY_LICENSES.txt │ │ │ └── protos │ │ │ └── tribuo-xgboost.proto │ │ └── test │ │ └── java │ │ └── org │ │ └── tribuo │ │ └── common │ │ └── xgboost │ │ └── TestXGBoost.java └── pom.xml ├── Core ├── configs │ └── transformation-example.xml ├── pom.xml └── src │ ├── main │ ├── java-templates │ │ └── org │ │ │ └── tribuo │ │ │ └── Tribuo.java │ ├── java │ │ └── org │ │ │ └── tribuo │ │ │ ├── CategoricalIDInfo.java │ │ │ ├── CategoricalInfo.java │ │ │ ├── ConfigurableDataSource.java │ │ │ ├── DataSource.java │ │ │ ├── Dataset.java │ │ │ ├── Example.java │ │ │ ├── Excuse.java │ │ │ ├── Feature.java │ │ │ ├── FeatureMap.java │ │ │ ├── FeatureSelector.java │ │ │ ├── ImmutableDataset.java │ │ │ ├── ImmutableFeatureMap.java │ │ │ ├── ImmutableOutputInfo.java │ │ │ ├── IncrementalTrainer.java │ │ │ ├── Model.java │ │ │ ├── ModelExplorer.java │ │ │ ├── MutableDataset.java │ │ │ ├── MutableFeatureMap.java │ │ │ ├── MutableOutputInfo.java │ │ │ ├── ONNXExportable.java │ │ │ ├── Output.java │ │ │ ├── OutputFactory.java │ │ │ ├── OutputInfo.java │ │ │ ├── Prediction.java │ │ │ ├── RealIDInfo.java │ │ │ ├── RealInfo.java │ │ │ ├── SelectedFeatureSet.java │ │ │ ├── SkeletalVariableInfo.java │ │ │ ├── SparseModel.java │ │ │ ├── SparseTrainer.java │ │ │ ├── Trainer.java │ │ │ ├── VariableIDInfo.java │ │ │ ├── VariableInfo.java │ │ │ ├── WeightedExamples.java │ │ │ ├── dataset │ │ │ ├── DatasetView.java │ │ │ ├── MinimumCardinalityDataset.java │ │ │ ├── SelectedFeatureDataset.java │ │ │ └── package-info.java │ │ │ ├── datasource │ │ │ ├── AggregateConfigurableDataSource.java │ │ │ ├── AggregateDataSource.java │ │ │ ├── IDXDataSource.java │ │ │ ├── LibSVMDataSource.java │ │ │ ├── ListDataSource.java │ │ │ └── package-info.java │ │ │ ├── ensemble │ │ │ ├── BaggingTrainer.java │ │ │ ├── EnsembleCombiner.java │ │ │ ├── EnsembleExcuse.java │ │ │ ├── EnsembleModel.java │ │ │ ├── WeightedEnsembleModel.java │ │ │ └── package-info.java │ │ │ ├── evaluation │ │ │ ├── AbstractEvaluator.java │ │ │ ├── CrossValidation.java │ │ │ ├── DescriptiveStats.java │ │ │ ├── Evaluation.java │ │ │ ├── EvaluationAggregator.java │ │ │ ├── EvaluationRenderer.java │ │ │ ├── Evaluator.java │ │ │ ├── KFoldSplitter.java │ │ │ ├── OnlineEvaluator.java │ │ │ ├── TrainTestSplitter.java │ │ │ ├── metrics │ │ │ │ ├── EvaluationMetric.java │ │ │ │ ├── MetricContext.java │ │ │ │ ├── MetricID.java │ │ │ │ ├── MetricTarget.java │ │ │ │ └── package-info.java │ │ │ └── package-info.java │ │ │ ├── hash │ │ │ ├── HashCodeHasher.java │ │ │ ├── HashedFeatureMap.java │ │ │ ├── Hasher.java │ │ │ ├── HashingOptions.java │ │ │ ├── HashingTrainer.java │ │ │ ├── MessageDigestHasher.java │ │ │ ├── ModHashCodeHasher.java │ │ │ └── package-info.java │ │ │ ├── impl │ │ │ ├── ArrayExample.java │ │ │ ├── BinaryFeaturesExample.java │ │ │ ├── DatasetDataCarrier.java │ │ │ ├── IndexedArrayExample.java │ │ │ ├── ListExample.java │ │ │ ├── ModelDataCarrier.java │ │ │ └── package-info.java │ │ │ ├── package-info.java │ │ │ ├── protos │ │ │ ├── ProtoSerializable.java │ │ │ ├── ProtoSerializableClass.java │ │ │ ├── ProtoSerializableField.java │ │ │ ├── ProtoSerializableKeysValuesField.java │ │ │ ├── ProtoSerializableMapField.java │ │ │ ├── ProtoSerializableMapValuesField.java │ │ │ ├── ProtoUtil.java │ │ │ ├── core │ │ │ │ ├── BinaryFeaturesExampleProto.java │ │ │ │ ├── BinaryFeaturesExampleProtoOrBuilder.java │ │ │ │ ├── BinningTransformerProto.java │ │ │ │ ├── BinningTransformerProtoOrBuilder.java │ │ │ │ ├── CategoricalIDInfoProto.java │ │ │ │ ├── CategoricalIDInfoProtoOrBuilder.java │ │ │ │ ├── CategoricalInfoProto.java │ │ │ │ ├── CategoricalInfoProtoOrBuilder.java │ │ │ │ ├── DatasetDataProto.java │ │ │ │ ├── DatasetDataProtoOrBuilder.java │ │ │ │ ├── DatasetProto.java │ │ │ │ ├── DatasetProtoOrBuilder.java │ │ │ │ ├── DatasetViewProto.java │ │ │ │ ├── DatasetViewProtoOrBuilder.java │ │ │ │ ├── EnsembleCombinerProto.java │ │ │ │ ├── EnsembleCombinerProtoOrBuilder.java │ │ │ │ ├── ExampleDataProto.java │ │ │ │ ├── ExampleDataProtoOrBuilder.java │ │ │ │ ├── ExampleProto.java │ │ │ │ ├── ExampleProtoOrBuilder.java │ │ │ │ ├── FeatureDomainProto.java │ │ │ │ ├── FeatureDomainProtoOrBuilder.java │ │ │ │ ├── FeatureSetProto.java │ │ │ │ ├── FeatureSetProtoOrBuilder.java │ │ │ │ ├── HashedFeatureMapProto.java │ │ │ │ ├── HashedFeatureMapProtoOrBuilder.java │ │ │ │ ├── HasherProto.java │ │ │ │ ├── HasherProtoOrBuilder.java │ │ │ │ ├── IDFTransformerProto.java │ │ │ │ ├── IDFTransformerProtoOrBuilder.java │ │ │ │ ├── ImmutableDatasetProto.java │ │ │ │ ├── ImmutableDatasetProtoOrBuilder.java │ │ │ │ ├── ImmutableFeatureMapProto.java │ │ │ │ ├── ImmutableFeatureMapProtoOrBuilder.java │ │ │ │ ├── ImmutableSequenceDatasetProto.java │ │ │ │ ├── ImmutableSequenceDatasetProtoOrBuilder.java │ │ │ │ ├── IndependentSequenceModelProto.java │ │ │ │ ├── IndependentSequenceModelProtoOrBuilder.java │ │ │ │ ├── IndexedArrayExampleProto.java │ │ │ │ ├── IndexedArrayExampleProtoOrBuilder.java │ │ │ │ ├── LinearScalingTransformerProto.java │ │ │ │ ├── LinearScalingTransformerProtoOrBuilder.java │ │ │ │ ├── MeanStdDevTransformerProto.java │ │ │ │ ├── MeanStdDevTransformerProtoOrBuilder.java │ │ │ │ ├── MeanVarianceProto.java │ │ │ │ ├── MeanVarianceProtoOrBuilder.java │ │ │ │ ├── MessageDigestHasherProto.java │ │ │ │ ├── MessageDigestHasherProtoOrBuilder.java │ │ │ │ ├── MinimumCardinalityDatasetProto.java │ │ │ │ ├── MinimumCardinalityDatasetProtoOrBuilder.java │ │ │ │ ├── MinimumCardinalitySequenceDatasetProto.java │ │ │ │ ├── MinimumCardinalitySequenceDatasetProtoOrBuilder.java │ │ │ │ ├── ModHashCodeHasherProto.java │ │ │ │ ├── ModHashCodeHasherProtoOrBuilder.java │ │ │ │ ├── ModelDataProto.java │ │ │ │ ├── ModelDataProtoOrBuilder.java │ │ │ │ ├── ModelProto.java │ │ │ │ ├── ModelProtoOrBuilder.java │ │ │ │ ├── MutableDatasetProto.java │ │ │ │ ├── MutableDatasetProtoOrBuilder.java │ │ │ │ ├── MutableFeatureMapProto.java │ │ │ │ ├── MutableFeatureMapProtoOrBuilder.java │ │ │ │ ├── MutableSequenceDatasetProto.java │ │ │ │ ├── MutableSequenceDatasetProtoOrBuilder.java │ │ │ │ ├── OutputDomainProto.java │ │ │ │ ├── OutputDomainProtoOrBuilder.java │ │ │ │ ├── OutputFactoryProto.java │ │ │ │ ├── OutputFactoryProtoOrBuilder.java │ │ │ │ ├── OutputProto.java │ │ │ │ ├── OutputProtoOrBuilder.java │ │ │ │ ├── PredictionImplProto.java │ │ │ │ ├── PredictionImplProtoOrBuilder.java │ │ │ │ ├── PredictionProto.java │ │ │ │ ├── PredictionProtoOrBuilder.java │ │ │ │ ├── RealIDInfoProto.java │ │ │ │ ├── RealIDInfoProtoOrBuilder.java │ │ │ │ ├── RealInfoProto.java │ │ │ │ ├── RealInfoProtoOrBuilder.java │ │ │ │ ├── SelectedFeatureDatasetProto.java │ │ │ │ ├── SelectedFeatureDatasetProtoOrBuilder.java │ │ │ │ ├── SelectedFeatureSetProto.java │ │ │ │ ├── SelectedFeatureSetProtoOrBuilder.java │ │ │ │ ├── SequenceDatasetProto.java │ │ │ │ ├── SequenceDatasetProtoOrBuilder.java │ │ │ │ ├── SequenceExampleImplProto.java │ │ │ │ ├── SequenceExampleImplProtoOrBuilder.java │ │ │ │ ├── SequenceExampleProto.java │ │ │ │ ├── SequenceExampleProtoOrBuilder.java │ │ │ │ ├── SequenceModelProto.java │ │ │ │ ├── SequenceModelProtoOrBuilder.java │ │ │ │ ├── SimpleTransformProto.java │ │ │ │ ├── SimpleTransformProtoOrBuilder.java │ │ │ │ ├── TransformedModelProto.java │ │ │ │ ├── TransformedModelProtoOrBuilder.java │ │ │ │ ├── TransformerListProto.java │ │ │ │ ├── TransformerListProtoOrBuilder.java │ │ │ │ ├── TransformerMapProto.java │ │ │ │ ├── TransformerMapProtoOrBuilder.java │ │ │ │ ├── TransformerProto.java │ │ │ │ ├── TransformerProtoOrBuilder.java │ │ │ │ ├── TribuoCore.java │ │ │ │ ├── TribuoCoreImpl.java │ │ │ │ ├── VariableInfoProto.java │ │ │ │ ├── VariableInfoProtoOrBuilder.java │ │ │ │ ├── WeightedEnsembleModelProto.java │ │ │ │ └── WeightedEnsembleModelProtoOrBuilder.java │ │ │ └── package-info.java │ │ │ ├── provenance │ │ │ ├── ConfiguredDataSourceProvenance.java │ │ │ ├── DataProvenance.java │ │ │ ├── DataSourceProvenance.java │ │ │ ├── DatasetProvenance.java │ │ │ ├── EnsembleModelProvenance.java │ │ │ ├── EvaluationProvenance.java │ │ │ ├── FeatureSelectorProvenance.java │ │ │ ├── FeatureSetProvenance.java │ │ │ ├── ModelProvenance.java │ │ │ ├── OutputFactoryProvenance.java │ │ │ ├── SimpleDataSourceProvenance.java │ │ │ ├── SkeletalTrainerProvenance.java │ │ │ ├── TrainerProvenance.java │ │ │ ├── impl │ │ │ │ ├── EmptyDataSourceProvenance.java │ │ │ │ ├── EmptyDatasetProvenance.java │ │ │ │ ├── EmptyTrainerProvenance.java │ │ │ │ ├── FeatureSelectorProvenanceImpl.java │ │ │ │ ├── TimestampedTrainerProvenance.java │ │ │ │ ├── TrainerProvenanceImpl.java │ │ │ │ └── package-info.java │ │ │ └── package-info.java │ │ │ ├── sequence │ │ │ ├── AbstractSequenceEvaluator.java │ │ │ ├── HashingSequenceTrainer.java │ │ │ ├── ImmutableSequenceDataset.java │ │ │ ├── IndependentSequenceModel.java │ │ │ ├── IndependentSequenceTrainer.java │ │ │ ├── MinimumCardinalitySequenceDataset.java │ │ │ ├── MutableSequenceDataset.java │ │ │ ├── SequenceDataSource.java │ │ │ ├── SequenceDataset.java │ │ │ ├── SequenceEvaluation.java │ │ │ ├── SequenceEvaluator.java │ │ │ ├── SequenceExample.java │ │ │ ├── SequenceModel.java │ │ │ ├── SequenceModelExplorer.java │ │ │ ├── SequenceTrainer.java │ │ │ └── package-info.java │ │ │ ├── transform │ │ │ ├── TransformStatistics.java │ │ │ ├── TransformTrainer.java │ │ │ ├── Transformation.java │ │ │ ├── TransformationMap.java │ │ │ ├── TransformationProvenance.java │ │ │ ├── TransformedModel.java │ │ │ ├── Transformer.java │ │ │ ├── TransformerMap.java │ │ │ ├── package-info.java │ │ │ └── transformations │ │ │ │ ├── BinningTransformation.java │ │ │ │ ├── IDFTransformation.java │ │ │ │ ├── LinearScalingTransformation.java │ │ │ │ ├── MeanStdDevTransformation.java │ │ │ │ ├── SimpleTransform.java │ │ │ │ └── package-info.java │ │ │ └── util │ │ │ ├── HTMLOutput.java │ │ │ ├── IntDoublePair.java │ │ │ ├── MeanVarianceAccumulator.java │ │ │ ├── Merger.java │ │ │ ├── MurmurHash3.java │ │ │ ├── Util.java │ │ │ └── package-info.java │ ├── javadoc │ │ └── overview.html │ └── resources │ │ ├── META-INF │ │ ├── LICENSE.txt │ │ └── THIRD_PARTY_LICENSES.txt │ │ └── protos │ │ ├── tribuo-core-impl.proto │ │ └── tribuo-core.proto │ └── test │ ├── java │ └── org │ │ └── tribuo │ │ ├── CategoricalInfoTest.java │ │ ├── DatasetTest.java │ │ ├── ExampleTest.java │ │ ├── FeatureMapTest.java │ │ ├── FeatureTest.java │ │ ├── PredictionTest.java │ │ ├── VariableInfoTest.java │ │ ├── VersionTest.java │ │ ├── dataset │ │ └── SelectedFeatureDatasetTest.java │ │ ├── datasource │ │ ├── AggregateDataSourceTest.java │ │ ├── IDXDataSourceTest.java │ │ └── LibSVMDataSourceTest.java │ │ ├── evaluation │ │ ├── KFoldSplitterTest.java │ │ └── TrainTestSplitterTest.java │ │ ├── hash │ │ └── HasherTests.java │ │ ├── protos │ │ └── ProtoUtilTest.java │ │ ├── sequence │ │ ├── IndependentSequenceModelTest.java │ │ └── SequenceDatasetTest.java │ │ ├── test │ │ ├── Helpers.java │ │ ├── MockDataSource.java │ │ ├── MockDataSourceProvenance.java │ │ ├── MockFeatureSelector.java │ │ ├── MockModel.java │ │ ├── MockMultiOutput.java │ │ ├── MockMultiOutputFactory.java │ │ ├── MockMultiOutputInfo.java │ │ ├── MockOutput.java │ │ ├── MockOutputFactory.java │ │ ├── MockOutputInfo.java │ │ ├── MockTrainer.java │ │ ├── package-info.java │ │ └── protos │ │ │ ├── MockModelProto.java │ │ │ ├── MockModelProtoOrBuilder.java │ │ │ ├── MockMultiOutputInfoProto.java │ │ │ ├── MockMultiOutputInfoProtoOrBuilder.java │ │ │ ├── MockMultiOutputProto.java │ │ │ ├── MockMultiOutputProtoOrBuilder.java │ │ │ ├── MockOutputInfoProto.java │ │ │ ├── MockOutputInfoProtoOrBuilder.java │ │ │ ├── MockOutputProto.java │ │ │ ├── MockOutputProtoOrBuilder.java │ │ │ ├── TestCountTransformerProto.java │ │ │ ├── TestCountTransformerProtoOrBuilder.java │ │ │ └── TribuoCoreTest.java │ │ ├── transform │ │ ├── TransformationMapTest.java │ │ ├── TransformedModelTest.java │ │ └── transformations │ │ │ ├── BinningTest.java │ │ │ ├── IDFTransformTest.java │ │ │ ├── LinearScalingTest.java │ │ │ ├── MeanStdDevTest.java │ │ │ └── SimpleTransformTest.java │ │ └── util │ │ ├── MeanVarianceAccumulatorTest.java │ │ └── UtilTest.java │ └── resources │ ├── org │ └── tribuo │ │ ├── array-example-431.tribuo │ │ ├── binary-example-431.tribuo │ │ ├── categorical-id-info-431.tribuo │ │ ├── categorical-info-431.tribuo │ │ ├── dataset-view-431.tribuo │ │ ├── dataset │ │ ├── selected-feature-dataset-431.tribuo │ │ └── selected-feature-set-431.tribuo │ │ ├── datasource │ │ ├── byte-mat.idx │ │ ├── byte.idx │ │ ├── config.xml │ │ ├── incorrect-num-dims.idx │ │ ├── int.idx │ │ ├── invalid-dim-byte.idx │ │ ├── invalid-magic-byte.idx │ │ ├── invalid-type-byte.idx │ │ ├── no-data.idx │ │ ├── output.idx │ │ ├── outputs-long.idx │ │ ├── outputs.idx │ │ ├── test-1.libsvm │ │ ├── too-little-data.idx │ │ └── too-much-data.idx │ │ ├── feature-map-431.tribuo │ │ ├── hash │ │ ├── hashed-feature-map-431.tribuo │ │ ├── hc-hasher-431.tribuo │ │ ├── md-hasher-431.tribuo │ │ └── mod-hasher-431.tribuo │ │ ├── immutable-dataset-431.tribuo │ │ ├── immutable-feature-map-431.tribuo │ │ ├── indexed-example-431.tribuo │ │ ├── list-example-431.tribuo │ │ ├── minimum-cardinality-dataset-431.tribuo │ │ ├── mutable-dataset-431.tribuo │ │ ├── prediction-431.tribuo │ │ ├── real-id-info-431.tribuo │ │ ├── real-info-431.tribuo │ │ ├── sequence │ │ ├── immutable-sequence-dataset-431.tribuo │ │ ├── independent-sequence-model-431.tribuo │ │ ├── minimum-cardinality-sequence-dataset-431.tribuo │ │ ├── mutable-sequence-dataset-431.tribuo │ │ └── sequence-example-431.tribuo │ │ └── transform │ │ └── transformed-model-431.tribuo │ └── protos │ └── tribuo-core-test.proto ├── Data ├── pom.xml └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── tribuo │ │ │ └── data │ │ │ ├── CompletelyConfigurableTrainTest.java │ │ │ ├── ConfigurableTrainTest.java │ │ │ ├── DataOptions.java │ │ │ ├── DatasetExplorer.java │ │ │ ├── PreprocessAndSerialize.java │ │ │ ├── columnar │ │ │ ├── ColumnarDataSource.java │ │ │ ├── ColumnarFeature.java │ │ │ ├── ColumnarIterator.java │ │ │ ├── FeatureProcessor.java │ │ │ ├── FieldExtractor.java │ │ │ ├── FieldProcessor.java │ │ │ ├── ResponseProcessor.java │ │ │ ├── RowProcessor.java │ │ │ ├── extractors │ │ │ │ ├── DateExtractor.java │ │ │ │ ├── DoubleExtractor.java │ │ │ │ ├── FloatExtractor.java │ │ │ │ ├── IdentityExtractor.java │ │ │ │ ├── IndexExtractor.java │ │ │ │ ├── IntExtractor.java │ │ │ │ ├── OffsetDateTimeExtractor.java │ │ │ │ ├── SimpleFieldExtractor.java │ │ │ │ └── package-info.java │ │ │ ├── package-info.java │ │ │ └── processors │ │ │ │ ├── feature │ │ │ │ ├── UniqueProcessor.java │ │ │ │ └── package-info.java │ │ │ │ ├── field │ │ │ │ ├── DateFieldProcessor.java │ │ │ │ ├── DoubleFieldProcessor.java │ │ │ │ ├── IdentityProcessor.java │ │ │ │ ├── RegexFieldProcessor.java │ │ │ │ ├── TextFieldProcessor.java │ │ │ │ └── package-info.java │ │ │ │ └── response │ │ │ │ ├── BinaryResponseProcessor.java │ │ │ │ ├── EmptyResponseProcessor.java │ │ │ │ ├── FieldResponseProcessor.java │ │ │ │ ├── Quartile.java │ │ │ │ ├── QuartileResponseProcessor.java │ │ │ │ └── package-info.java │ │ │ ├── csv │ │ │ ├── CSVDataSource.java │ │ │ ├── CSVIterator.java │ │ │ ├── CSVLoader.java │ │ │ ├── CSVSaver.java │ │ │ └── package-info.java │ │ │ ├── package-info.java │ │ │ ├── sql │ │ │ ├── ResultSetIterator.java │ │ │ ├── SQLDBConfig.java │ │ │ ├── SQLDataSource.java │ │ │ ├── SQLToCSV.java │ │ │ └── package-info.java │ │ │ └── text │ │ │ ├── DirectoryFileSource.java │ │ │ ├── DocumentPreprocessor.java │ │ │ ├── FeatureAggregator.java │ │ │ ├── FeatureTransformer.java │ │ │ ├── SplitTextData.java │ │ │ ├── TextDataSource.java │ │ │ ├── TextFeatureExtractor.java │ │ │ ├── TextPipeline.java │ │ │ ├── TextProcessingException.java │ │ │ ├── TextProcessor.java │ │ │ ├── impl │ │ │ ├── AverageAggregator.java │ │ │ ├── BasicPipeline.java │ │ │ ├── CasingPreprocessor.java │ │ │ ├── FeatureHasher.java │ │ │ ├── NewsPreprocessor.java │ │ │ ├── NgramProcessor.java │ │ │ ├── RegexPreprocessor.java │ │ │ ├── SimpleStringDataSource.java │ │ │ ├── SimpleTextDataSource.java │ │ │ ├── SumAggregator.java │ │ │ ├── TextFeatureExtractorImpl.java │ │ │ ├── TokenPipeline.java │ │ │ ├── UniqueAggregator.java │ │ │ └── package-info.java │ │ │ └── package-info.java │ └── resources │ │ ├── LICENSE.txt │ │ └── THIRD_PARTY_LICENSES.txt │ └── test │ ├── java │ └── org │ │ └── tribuo │ │ └── data │ │ ├── columnar │ │ ├── MockResponseProcessor.java │ │ ├── RowProcessorBuilderTest.java │ │ ├── RowProcessorTest.java │ │ ├── extractors │ │ │ ├── DateExtractorTest.java │ │ │ └── OffsetDateTimeExtractorTest.java │ │ └── processors │ │ │ ├── field │ │ │ └── DateFieldProcessorTest.java │ │ │ └── response │ │ │ ├── EmptyResponseProcessorTest.java │ │ │ ├── MultioutputResponseProcessorTest.java │ │ │ └── ResponseProcessorRoundtripTest.java │ │ ├── csv │ │ ├── CSVDataSourceTest.java │ │ ├── CSVIteratorTest.java │ │ ├── CSVLoaderTest.java │ │ └── CSVSaverTest.java │ │ └── text │ │ ├── TextPipelineTest.java │ │ └── impl │ │ ├── FeatureHasherTest.java │ │ ├── RegexPreprocessorTest.java │ │ └── SimpleStringDataSourceTest.java │ └── resources │ └── org │ └── tribuo │ └── data │ └── csv │ ├── test-bom.csv │ ├── test-double-line-break.csv │ ├── test-missingoutput.csv │ ├── test-multioutput-singlecolumn.csv │ ├── test-multioutput.csv │ ├── test-noheader.csv │ ├── test-regexmapping.csv │ ├── test.csv │ ├── testQuote.csv │ └── testQuote.tsv ├── Interop ├── Core │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── org │ │ │ └── tribuo │ │ │ └── interop │ │ │ ├── ExternalDatasetProvenance.java │ │ │ ├── ExternalModel.java │ │ │ ├── ExternalTrainerProvenance.java │ │ │ └── package-info.java │ │ └── resources │ │ ├── LICENSE.txt │ │ └── THIRD_PARTY_LICENSES.txt ├── ModelCard │ ├── pom.xml │ └── src │ │ ├── main │ │ └── java │ │ │ └── org │ │ │ └── tribuo │ │ │ └── interop │ │ │ └── modelcard │ │ │ ├── ModelCard.java │ │ │ ├── ModelCardCLI.java │ │ │ ├── ModelDetails.java │ │ │ ├── TestingDetails.java │ │ │ ├── TrainingDetails.java │ │ │ ├── UsageDetails.java │ │ │ ├── UsageDetailsBuilder.java │ │ │ └── package-info.java │ │ └── test │ │ ├── java │ │ └── org │ │ │ └── tribuo │ │ │ └── interop │ │ │ └── modelcard │ │ │ ├── EnsembleModelsTest.java │ │ │ ├── ExternalModelsTest.java │ │ │ └── NativeModelsTest.java │ │ └── resources │ │ ├── classificationSampleData.csv │ │ ├── externalModelPath.xgb │ │ ├── externalModelSampleData.csv │ │ ├── multiClassificationSampleData.svm │ │ └── regressionSampleData.csv ├── OCI │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── tribuo │ │ │ │ └── interop │ │ │ │ └── oci │ │ │ │ ├── OCILabelConverter.java │ │ │ │ ├── OCIModel.java │ │ │ │ ├── OCIModelCLI.java │ │ │ │ ├── OCIMultiLabelConverter.java │ │ │ │ ├── OCIOutputConverter.java │ │ │ │ ├── OCIRegressorConverter.java │ │ │ │ ├── OCIUtil.java │ │ │ │ ├── package-info.java │ │ │ │ └── protos │ │ │ │ ├── OCILabelConverterProto.java │ │ │ │ ├── OCILabelConverterProtoOrBuilder.java │ │ │ │ ├── OCIModelProto.java │ │ │ │ ├── OCIModelProtoOrBuilder.java │ │ │ │ ├── OCIMultiLabelConverterProto.java │ │ │ │ ├── OCIMultiLabelConverterProtoOrBuilder.java │ │ │ │ ├── OCIOutputConverterProto.java │ │ │ │ ├── OCIOutputConverterProtoOrBuilder.java │ │ │ │ └── TribuoOci.java │ │ └── resources │ │ │ ├── LICENSE.txt │ │ │ ├── THIRD_PARTY_LICENSES.txt │ │ │ ├── org │ │ │ └── tribuo │ │ │ │ └── interop │ │ │ │ └── oci │ │ │ │ ├── runtime.yaml │ │ │ │ └── score.py │ │ │ └── protos │ │ │ └── tribuo-oci.proto │ │ └── test │ │ ├── java │ │ └── org │ │ │ └── tribuo │ │ │ └── interop │ │ │ └── oci │ │ │ ├── OCIConverterTest.java │ │ │ └── OCIUtilTest.java │ │ └── resources │ │ └── org │ │ └── tribuo │ │ └── interop │ │ └── oci │ │ ├── iris-lr-model.onnx │ │ ├── label-431.tribuo │ │ ├── multilabel-431.tribuo │ │ └── regressor-431.tribuo ├── ONNX │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── tribuo │ │ │ │ └── interop │ │ │ │ └── onnx │ │ │ │ ├── DenseTransformer.java │ │ │ │ ├── ExampleTransformer.java │ │ │ │ ├── ImageTransformer.java │ │ │ │ ├── LabelOneVOneTransformer.java │ │ │ │ ├── LabelTransformer.java │ │ │ │ ├── MultiLabelTransformer.java │ │ │ │ ├── ONNXExternalModel.java │ │ │ │ ├── OutputTransformer.java │ │ │ │ ├── RegressorTransformer.java │ │ │ │ ├── extractors │ │ │ │ ├── BERTFeatureExtractor.java │ │ │ │ └── package-info.java │ │ │ │ ├── package-info.java │ │ │ │ └── protos │ │ │ │ ├── ExampleTransformerProto.java │ │ │ │ ├── ExampleTransformerProtoOrBuilder.java │ │ │ │ ├── ImageTransformerProto.java │ │ │ │ ├── ImageTransformerProtoOrBuilder.java │ │ │ │ ├── LabelTransformerProto.java │ │ │ │ ├── LabelTransformerProtoOrBuilder.java │ │ │ │ ├── MultiLabelTransformerProto.java │ │ │ │ ├── MultiLabelTransformerProtoOrBuilder.java │ │ │ │ ├── ONNXExternalModelProto.java │ │ │ │ ├── ONNXExternalModelProtoOrBuilder.java │ │ │ │ ├── OutputTransformerProto.java │ │ │ │ ├── OutputTransformerProtoOrBuilder.java │ │ │ │ └── TribuoOnnx.java │ │ └── resources │ │ │ ├── LICENSE.txt │ │ │ ├── THIRD_PARTY_LICENSES.txt │ │ │ └── protos │ │ │ └── tribuo-onnx.proto │ │ └── test │ │ ├── java │ │ └── org │ │ │ └── tribuo │ │ │ └── interop │ │ │ └── onnx │ │ │ ├── MultiLabelTransformerTest.java │ │ │ ├── OnnxTestUtils.java │ │ │ ├── TestOnnxRuntime.java │ │ │ └── extractors │ │ │ └── BERTFeatureExtractorTest.java │ │ └── resources │ │ ├── create_test_data.py │ │ └── org │ │ └── tribuo │ │ └── interop │ │ └── onnx │ │ ├── cnn_mnist.onnx │ │ ├── dense-431.tribuo │ │ ├── extractors │ │ ├── bert-base-cased-tokenizer.json │ │ ├── bert-base-cased-tokenizer.json.README │ │ ├── bert-base-cased-vocab.txt │ │ ├── tinybert-tokenizer.json │ │ └── tinybert.onnx │ │ ├── image-431.tribuo │ │ ├── label-431.tribuo │ │ ├── lovo-431.tribuo │ │ ├── lr_mnist.onnx │ │ ├── mnist_test_head.libsvm │ │ ├── multilabel-431.tribuo │ │ ├── regressor-431.tribuo │ │ └── transposed_mnist_test_head.libsvm ├── Tensorflow │ ├── configs │ │ ├── cnn-mnist-example.xml │ │ └── cnn-mnist-v0.3.1.pb │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── tribuo │ │ │ │ └── interop │ │ │ │ └── tensorflow │ │ │ │ ├── DenseFeatureConverter.java │ │ │ │ ├── FeatureConverter.java │ │ │ │ ├── GradientOptimiser.java │ │ │ │ ├── ImageConverter.java │ │ │ │ ├── LabelConverter.java │ │ │ │ ├── MultiLabelConverter.java │ │ │ │ ├── OutputConverter.java │ │ │ │ ├── RegressorConverter.java │ │ │ │ ├── TensorFlowCheckpointModel.java │ │ │ │ ├── TensorFlowFrozenExternalModel.java │ │ │ │ ├── TensorFlowModel.java │ │ │ │ ├── TensorFlowNativeModel.java │ │ │ │ ├── TensorFlowSavedModelExternalModel.java │ │ │ │ ├── TensorFlowTrainer.java │ │ │ │ ├── TensorFlowUtil.java │ │ │ │ ├── TensorMap.java │ │ │ │ ├── TrainTest.java │ │ │ │ ├── example │ │ │ │ ├── CNNExamples.java │ │ │ │ ├── GraphDefTuple.java │ │ │ │ ├── MLPExamples.java │ │ │ │ └── package-info.java │ │ │ │ ├── package-info.java │ │ │ │ ├── protos │ │ │ │ ├── DenseFeatureConverterProto.java │ │ │ │ ├── DenseFeatureConverterProtoOrBuilder.java │ │ │ │ ├── FeatureConverterProto.java │ │ │ │ ├── FeatureConverterProtoOrBuilder.java │ │ │ │ ├── ImageConverterProto.java │ │ │ │ ├── ImageConverterProtoOrBuilder.java │ │ │ │ ├── OutputConverterProto.java │ │ │ │ ├── OutputConverterProtoOrBuilder.java │ │ │ │ ├── SequenceFeatureConverterProto.java │ │ │ │ ├── SequenceFeatureConverterProtoOrBuilder.java │ │ │ │ ├── SequenceOutputConverterProto.java │ │ │ │ ├── SequenceOutputConverterProtoOrBuilder.java │ │ │ │ ├── TensorFlowCheckpointModelProto.java │ │ │ │ ├── TensorFlowCheckpointModelProtoOrBuilder.java │ │ │ │ ├── TensorFlowFrozenExternalModelProto.java │ │ │ │ ├── TensorFlowFrozenExternalModelProtoOrBuilder.java │ │ │ │ ├── TensorFlowNativeModelProto.java │ │ │ │ ├── TensorFlowNativeModelProtoOrBuilder.java │ │ │ │ ├── TensorFlowSavedModelExternalModelProto.java │ │ │ │ ├── TensorFlowSavedModelExternalModelProtoOrBuilder.java │ │ │ │ ├── TensorFlowSequenceModelProto.java │ │ │ │ ├── TensorFlowSequenceModelProtoOrBuilder.java │ │ │ │ ├── TensorTupleProto.java │ │ │ │ ├── TensorTupleProtoOrBuilder.java │ │ │ │ └── TribuoTensorflow.java │ │ │ │ └── sequence │ │ │ │ ├── SequenceFeatureConverter.java │ │ │ │ ├── SequenceOutputConverter.java │ │ │ │ ├── TensorFlowSequenceModel.java │ │ │ │ ├── TensorFlowSequenceTrainer.java │ │ │ │ └── package-info.java │ │ └── resources │ │ │ ├── LICENSE.txt │ │ │ ├── THIRD_PARTY_LICENSES.txt │ │ │ └── protos │ │ │ └── tribuo-tensorflow.proto │ │ └── test │ │ ├── java │ │ └── org │ │ │ └── tribuo │ │ │ └── interop │ │ │ └── tensorflow │ │ │ ├── ClassificationTest.java │ │ │ ├── ConverterTest.java │ │ │ ├── ImageConverterTest.java │ │ │ └── RegressionTest.java │ │ └── resources │ │ └── org │ │ └── tribuo │ │ └── interop │ │ └── tensorflow │ │ ├── dense-431.tribuo │ │ ├── image-431.tribuo │ │ ├── label-431.tribuo │ │ ├── multilabel-431.tribuo │ │ └── regressor-431.tribuo └── pom.xml ├── Json ├── pom.xml └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── tribuo │ │ │ └── json │ │ │ ├── JsonDataSource.java │ │ │ ├── JsonFileIterator.java │ │ │ ├── JsonUtil.java │ │ │ ├── StripProvenance.java │ │ │ └── package-info.java │ └── resources │ │ ├── LICENSE.txt │ │ └── THIRD_PARTY_LICENSES.txt │ └── test │ ├── java │ └── org │ │ └── tribuo │ │ └── json │ │ └── JsonDataSourceTest.java │ └── resources │ └── org │ └── tribuo │ └── json │ ├── empty.json │ └── test.json ├── LICENSE.txt ├── Math ├── pom.xml └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── tribuo │ │ │ └── math │ │ │ ├── FeedForwardParameters.java │ │ │ ├── LinearParameters.java │ │ │ ├── Parameters.java │ │ │ ├── StochasticGradientOptimiser.java │ │ │ ├── distance │ │ │ ├── CosineDistance.java │ │ │ ├── Distance.java │ │ │ ├── DistanceType.java │ │ │ ├── L1Distance.java │ │ │ ├── L2Distance.java │ │ │ └── package-info.java │ │ │ ├── distributions │ │ │ ├── Distribution.java │ │ │ ├── MixtureDistribution.java │ │ │ ├── MultivariateNormalDistribution.java │ │ │ └── package-info.java │ │ │ ├── kernel │ │ │ ├── Kernel.java │ │ │ ├── Linear.java │ │ │ ├── Polynomial.java │ │ │ ├── RBF.java │ │ │ ├── Sigmoid.java │ │ │ └── package-info.java │ │ │ ├── la │ │ │ ├── DenseMatrix.java │ │ │ ├── DenseSparseMatrix.java │ │ │ ├── DenseVector.java │ │ │ ├── Matrix.java │ │ │ ├── MatrixIterator.java │ │ │ ├── MatrixTuple.java │ │ │ ├── SGDVector.java │ │ │ ├── SparseVector.java │ │ │ ├── Tensor.java │ │ │ ├── VectorIterator.java │ │ │ ├── VectorTuple.java │ │ │ └── package-info.java │ │ │ ├── neighbour │ │ │ ├── NeighboursQuery.java │ │ │ ├── NeighboursQueryFactory.java │ │ │ ├── NeighboursQueryFactoryType.java │ │ │ ├── bruteforce │ │ │ │ ├── NeighboursBruteForce.java │ │ │ │ ├── NeighboursBruteForceFactory.java │ │ │ │ └── package-info.java │ │ │ ├── kdtree │ │ │ │ ├── DimensionNode.java │ │ │ │ ├── KDTree.java │ │ │ │ ├── KDTreeFactory.java │ │ │ │ └── package-info.java │ │ │ └── package-info.java │ │ │ ├── onnx │ │ │ ├── ONNXMathUtils.java │ │ │ └── package-info.java │ │ │ ├── optimisers │ │ │ ├── AdaDelta.java │ │ │ ├── AdaGrad.java │ │ │ ├── AdaGradRDA.java │ │ │ ├── Adam.java │ │ │ ├── GradientOptimiserOptions.java │ │ │ ├── ParameterAveraging.java │ │ │ ├── Pegasos.java │ │ │ ├── RMSProp.java │ │ │ ├── SGD.java │ │ │ ├── package-info.java │ │ │ └── util │ │ │ │ ├── ShrinkingMatrix.java │ │ │ │ ├── ShrinkingTensor.java │ │ │ │ ├── ShrinkingVector.java │ │ │ │ └── package-info.java │ │ │ ├── package-info.java │ │ │ ├── protos │ │ │ ├── AdaGradRDADenseTensorProto.java │ │ │ ├── AdaGradRDADenseTensorProtoOrBuilder.java │ │ │ ├── BruteForceFactoryProto.java │ │ │ ├── BruteForceFactoryProtoOrBuilder.java │ │ │ ├── DenseTensorProto.java │ │ │ ├── DenseTensorProtoOrBuilder.java │ │ │ ├── DistanceProto.java │ │ │ ├── DistanceProtoOrBuilder.java │ │ │ ├── KDTreeFactoryProto.java │ │ │ ├── KDTreeFactoryProtoOrBuilder.java │ │ │ ├── KernelProto.java │ │ │ ├── KernelProtoOrBuilder.java │ │ │ ├── LinearParametersProto.java │ │ │ ├── LinearParametersProtoOrBuilder.java │ │ │ ├── MergerProto.java │ │ │ ├── MergerProtoOrBuilder.java │ │ │ ├── NeighbourFactoryProto.java │ │ │ ├── NeighbourFactoryProtoOrBuilder.java │ │ │ ├── NormalizerProto.java │ │ │ ├── NormalizerProtoOrBuilder.java │ │ │ ├── ParametersProto.java │ │ │ ├── ParametersProtoOrBuilder.java │ │ │ ├── PolynomialKernelProto.java │ │ │ ├── PolynomialKernelProtoOrBuilder.java │ │ │ ├── RBFKernelProto.java │ │ │ ├── RBFKernelProtoOrBuilder.java │ │ │ ├── ShrinkingDenseTensorProto.java │ │ │ ├── ShrinkingDenseTensorProtoOrBuilder.java │ │ │ ├── SigmoidKernelProto.java │ │ │ ├── SigmoidKernelProtoOrBuilder.java │ │ │ ├── SparseTensorProto.java │ │ │ ├── SparseTensorProtoOrBuilder.java │ │ │ ├── TensorProto.java │ │ │ ├── TensorProtoOrBuilder.java │ │ │ ├── TribuoMath.java │ │ │ └── TribuoMathImpl.java │ │ │ └── util │ │ │ ├── ExpNormalizer.java │ │ │ ├── HeapMerger.java │ │ │ ├── MatrixHeapMerger.java │ │ │ ├── Merger.java │ │ │ ├── NoopNormalizer.java │ │ │ ├── Normalizer.java │ │ │ ├── SigmoidNormalizer.java │ │ │ ├── VectorNormalizer.java │ │ │ └── package-info.java │ └── resources │ │ ├── LICENSE.txt │ │ ├── THIRD_PARTY_LICENSES.txt │ │ └── protos │ │ ├── tribuo-math-impl.proto │ │ └── tribuo-math.proto │ └── test │ ├── java │ └── org │ │ └── tribuo │ │ └── math │ │ ├── KernelTest.java │ │ ├── distance │ │ └── DistanceTest.java │ │ ├── distributions │ │ └── MultivariateNormalDistributionTest.java │ │ ├── la │ │ ├── DenseMatrixTest.java │ │ ├── DenseSparseMatrixTest.java │ │ ├── DenseVectorTest.java │ │ ├── SparseVectorTest.java │ │ └── VectorDistanceTest.java │ │ ├── neighbour │ │ ├── NeighbourQueryTestHelper.java │ │ ├── TestKDTree.java │ │ └── TestNeighborsBruteForce.java │ │ ├── optimisers │ │ └── util │ │ │ └── ShrinkingTensorTest.java │ │ └── util │ │ ├── MergerTest.java │ │ ├── NormalizerTest.java │ │ └── SGDVectorsFromCSV.java │ └── resources │ ├── basic-gaussians-3d.csv │ ├── cholesky-test.py │ ├── eigendecomposition-test.py │ ├── integers-1K-4features.csv │ ├── lufactorization-test.py │ └── org │ └── tribuo │ └── math │ ├── distance │ ├── cosine-distance-431.tribuo │ ├── l1-distance-431.tribuo │ └── l2-distance-431.tribuo │ ├── la │ ├── dense-matrix-431.tribuo │ ├── dense-vector-431.tribuo │ ├── densesparse-matrix-431.tribuo │ └── sparse-vector-431.tribuo │ ├── linear-kernel-431.tribuo │ ├── neighbour │ ├── brute-factory-431.tribuo │ └── kdtree-factory-431.tribuo │ ├── optimisers │ └── util │ │ ├── shrinking-matrix-431.tribuo │ │ └── shrinking-vector-431.tribuo │ ├── poly-kernel-431.tribuo │ ├── rbf-kernel-431.tribuo │ ├── sigmoid-kernel-431.tribuo │ └── util │ ├── exp-normalizer-431.tribuo │ ├── heap-merger-431.tribuo │ ├── matrix-merger-431.tribuo │ ├── noop-normalizer-431.tribuo │ ├── normalizer-431.tribuo │ └── sigmoid-normalizer-431.tribuo ├── MultiLabel ├── Core │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── tribuo │ │ │ │ └── multilabel │ │ │ │ ├── ImmutableMultiLabelInfo.java │ │ │ │ ├── MultiLabel.java │ │ │ │ ├── MultiLabelFactory.java │ │ │ │ ├── MultiLabelInfo.java │ │ │ │ ├── MutableMultiLabelInfo.java │ │ │ │ ├── baseline │ │ │ │ ├── BinaryExample.java │ │ │ │ ├── ClassifierChainModel.java │ │ │ │ ├── ClassifierChainTrainer.java │ │ │ │ ├── IndependentMultiLabelModel.java │ │ │ │ ├── IndependentMultiLabelTrainer.java │ │ │ │ └── package-info.java │ │ │ │ ├── ensemble │ │ │ │ ├── CCEnsembleTrainer.java │ │ │ │ ├── MultiLabelVotingCombiner.java │ │ │ │ └── package-info.java │ │ │ │ ├── evaluation │ │ │ │ ├── MultiLabelConfusionMatrix.java │ │ │ │ ├── MultiLabelEvaluation.java │ │ │ │ ├── MultiLabelEvaluationImpl.java │ │ │ │ ├── MultiLabelEvaluator.java │ │ │ │ ├── MultiLabelMetric.java │ │ │ │ ├── MultiLabelMetrics.java │ │ │ │ └── package-info.java │ │ │ │ ├── example │ │ │ │ ├── MultiLabelDataGenerator.java │ │ │ │ ├── MultiLabelGaussianDataSource.java │ │ │ │ └── package-info.java │ │ │ │ ├── package-info.java │ │ │ │ └── protos │ │ │ │ ├── BinaryExampleProto.java │ │ │ │ ├── BinaryExampleProtoOrBuilder.java │ │ │ │ ├── ClassifierChainModelProto.java │ │ │ │ ├── ClassifierChainModelProtoOrBuilder.java │ │ │ │ ├── ImmutableMultiLabelInfoProto.java │ │ │ │ ├── ImmutableMultiLabelInfoProtoOrBuilder.java │ │ │ │ ├── IndependentMultiLabelModelProto.java │ │ │ │ ├── IndependentMultiLabelModelProtoOrBuilder.java │ │ │ │ ├── MultiLabelProto.java │ │ │ │ ├── MultiLabelProtoOrBuilder.java │ │ │ │ ├── MutableMultiLabelInfoProto.java │ │ │ │ ├── MutableMultiLabelInfoProtoOrBuilder.java │ │ │ │ └── TribuoMultilabelCore.java │ │ └── resources │ │ │ ├── LICENSE.txt │ │ │ ├── THIRD_PARTY_LICENSES.txt │ │ │ └── protos │ │ │ └── tribuo-multilabel-core.proto │ │ └── test │ │ ├── java │ │ └── org │ │ │ └── tribuo │ │ │ └── multilabel │ │ │ ├── MultiLabelFactoryTest.java │ │ │ ├── MultiLabelTest.java │ │ │ ├── MutableMultiLabelInfoTest.java │ │ │ ├── SerializationTest.java │ │ │ ├── Utils.java │ │ │ ├── baseline │ │ │ ├── ClassifierChainTest.java │ │ │ └── IndependentMultiLabelTest.java │ │ │ ├── ensemble │ │ │ ├── CCEnsembleTest.java │ │ │ └── MultiLabelVotingCombinerTest.java │ │ │ └── evaluation │ │ │ ├── MultiLabelConfusionMatrixTest.java │ │ │ └── MultiLabelEvaluatorTest.java │ │ └── resources │ │ └── org │ │ └── tribuo │ │ └── multilabel │ │ ├── baseline │ │ ├── cc-431.tribuo │ │ └── iml-431.tribuo │ │ ├── combiner-multilabel-431.tribuo │ │ ├── factory-multilabel-431.tribuo │ │ ├── immutableinfo-multilabel-431.tribuo │ │ ├── multilabel-431.tribuo │ │ └── mutableinfo-multilabel-431.tribuo ├── SGD │ ├── configs │ │ ├── logistic-example.xml │ │ └── multilabel-factorization-machine.xml │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── tribuo │ │ │ │ └── multilabel │ │ │ │ └── sgd │ │ │ │ ├── MultiLabelObjective.java │ │ │ │ ├── fm │ │ │ │ ├── FMMultiLabelModel.java │ │ │ │ ├── FMMultiLabelOptions.java │ │ │ │ ├── FMMultiLabelTrainer.java │ │ │ │ └── package-info.java │ │ │ │ ├── linear │ │ │ │ ├── LinearSGDModel.java │ │ │ │ ├── LinearSGDOptions.java │ │ │ │ ├── LinearSGDTrainer.java │ │ │ │ └── package-info.java │ │ │ │ ├── objectives │ │ │ │ ├── BinaryCrossEntropy.java │ │ │ │ ├── Hinge.java │ │ │ │ └── package-info.java │ │ │ │ ├── package-info.java │ │ │ │ └── protos │ │ │ │ ├── FMMultiLabelModelProto.java │ │ │ │ ├── FMMultiLabelModelProtoOrBuilder.java │ │ │ │ ├── MultiLabelLinearSGDProto.java │ │ │ │ ├── MultiLabelLinearSGDProtoOrBuilder.java │ │ │ │ └── TribuoMultilabelSgd.java │ │ └── resources │ │ │ ├── LICENSE.txt │ │ │ ├── THIRD_PARTY_LICENSES.txt │ │ │ └── protos │ │ │ └── tribuo-multilabel-sgd.proto │ │ └── test │ │ ├── java │ │ └── org │ │ │ └── tribuo │ │ │ └── multilabel │ │ │ └── sgd │ │ │ ├── fm │ │ │ └── TestFMMultiLabel.java │ │ │ └── linear │ │ │ └── TestSGDLinear.java │ │ └── resources │ │ └── org │ │ └── tribuo │ │ └── multilabel │ │ └── sgd │ │ ├── fm │ │ └── fm-ml-431.tribuo │ │ └── linear │ │ └── lin-ml-431.tribuo └── pom.xml ├── README.md ├── Regression ├── Core │ ├── config │ │ └── example-datasource-config.xml │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── tribuo │ │ │ │ └── regression │ │ │ │ ├── ImmutableRegressionInfo.java │ │ │ │ ├── MutableRegressionInfo.java │ │ │ │ ├── RegressionFactory.java │ │ │ │ ├── RegressionInfo.java │ │ │ │ ├── Regressor.java │ │ │ │ ├── baseline │ │ │ │ ├── DummyRegressionModel.java │ │ │ │ ├── DummyRegressionTrainer.java │ │ │ │ └── package-info.java │ │ │ │ ├── ensemble │ │ │ │ ├── AveragingCombiner.java │ │ │ │ └── package-info.java │ │ │ │ ├── evaluation │ │ │ │ ├── RegressionEvaluation.java │ │ │ │ ├── RegressionEvaluationImpl.java │ │ │ │ ├── RegressionEvaluator.java │ │ │ │ ├── RegressionMetric.java │ │ │ │ ├── RegressionMetrics.java │ │ │ │ ├── RegressionSufficientStatistics.java │ │ │ │ └── package-info.java │ │ │ │ ├── example │ │ │ │ ├── GaussianDataSource.java │ │ │ │ ├── NonlinearGaussianDataSource.java │ │ │ │ ├── RegressionDataGenerator.java │ │ │ │ └── package-info.java │ │ │ │ ├── impl │ │ │ │ ├── SkeletalIndependentRegressionModel.java │ │ │ │ ├── SkeletalIndependentRegressionSparseModel.java │ │ │ │ ├── SkeletalIndependentRegressionSparseTrainer.java │ │ │ │ ├── SkeletalIndependentRegressionTrainer.java │ │ │ │ └── package-info.java │ │ │ │ ├── package-info.java │ │ │ │ └── protos │ │ │ │ ├── DimensionTupleProto.java │ │ │ │ ├── DimensionTupleProtoOrBuilder.java │ │ │ │ ├── DummyRegressionModelProto.java │ │ │ │ ├── DummyRegressionModelProtoOrBuilder.java │ │ │ │ ├── ImmutableRegressionInfoProto.java │ │ │ │ ├── ImmutableRegressionInfoProtoOrBuilder.java │ │ │ │ ├── MutableRegressionInfoProto.java │ │ │ │ ├── MutableRegressionInfoProtoOrBuilder.java │ │ │ │ ├── RegressionFactoryProto.java │ │ │ │ ├── RegressionFactoryProtoOrBuilder.java │ │ │ │ ├── RegressorProto.java │ │ │ │ ├── RegressorProtoOrBuilder.java │ │ │ │ └── TribuoRegressionCore.java │ │ └── resources │ │ │ ├── LICENSE.txt │ │ │ ├── THIRD_PARTY_LICENSES.txt │ │ │ └── protos │ │ │ └── tribuo-regression-core.proto │ │ └── test │ │ ├── java │ │ └── org │ │ │ └── tribuo │ │ │ └── regression │ │ │ ├── RegressorTest.java │ │ │ ├── SerializationTest.java │ │ │ ├── baseline │ │ │ └── TestDummyRegression.java │ │ │ ├── ensemble │ │ │ └── AveragingCombinerTest.java │ │ │ └── evaluation │ │ │ └── RegressionEvaluatorTest.java │ │ └── resources │ │ └── org │ │ └── tribuo │ │ └── regression │ │ ├── baseline │ │ └── dummyreg-431.tribuo │ │ ├── combiner-regression-431.tribuo │ │ ├── dimension-431.tribuo │ │ ├── factory-regression-431.tribuo │ │ ├── immutableinfo-regression-431.tribuo │ │ ├── mutableinfo-regression-431.tribuo │ │ └── regressor-431.tribuo ├── LibLinear │ ├── configs │ │ └── liblinear-example.xml │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── tribuo │ │ │ │ └── regression │ │ │ │ └── liblinear │ │ │ │ ├── LibLinearRegressionModel.java │ │ │ │ ├── LibLinearRegressionTrainer.java │ │ │ │ ├── LinearRegressionType.java │ │ │ │ ├── TrainTest.java │ │ │ │ └── package-info.java │ │ └── resources │ │ │ ├── LICENSE.txt │ │ │ └── THIRD_PARTY_LICENSES.txt │ │ └── test │ │ ├── java │ │ └── org │ │ │ └── tribuo │ │ │ └── regression │ │ │ └── liblinear │ │ │ └── TestLibLinear.java │ │ └── resources │ │ └── org │ │ └── tribuo │ │ └── regression │ │ └── liblinear │ │ ├── liblinear-4.1.0.model │ │ └── liblinear-reg-431.tribuo ├── LibSVM │ ├── configs │ │ └── libsvm-example.xml │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── tribuo │ │ │ │ └── regression │ │ │ │ └── libsvm │ │ │ │ ├── LibSVMRegressionModel.java │ │ │ │ ├── LibSVMRegressionTrainer.java │ │ │ │ ├── SVMRegressionType.java │ │ │ │ ├── TrainTest.java │ │ │ │ ├── package-info.java │ │ │ │ └── protos │ │ │ │ ├── LibSVMRegressionModelProto.java │ │ │ │ ├── LibSVMRegressionModelProtoOrBuilder.java │ │ │ │ └── TribuoRegressionLibsvm.java │ │ └── resources │ │ │ ├── LICENSE.txt │ │ │ ├── THIRD_PARTY_LICENSES.txt │ │ │ └── protos │ │ │ └── tribuo-regression-libsvm.proto │ │ └── test │ │ ├── java │ │ └── org │ │ │ └── tribuo │ │ │ └── regression │ │ │ └── libsvm │ │ │ └── TestLibSVM.java │ │ └── resources │ │ └── org │ │ └── tribuo │ │ └── regression │ │ └── libsvm │ │ ├── libsvm-4.1.0.model │ │ └── libsvm-reg-431.tribuo ├── RegressionTree │ ├── configs │ │ └── cart-example.xml │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── tribuo │ │ │ │ └── regression │ │ │ │ └── rtree │ │ │ │ ├── CARTJointRegressionTrainer.java │ │ │ │ ├── CARTRegressionTrainer.java │ │ │ │ ├── IndependentRegressionTreeModel.java │ │ │ │ ├── TrainTest.java │ │ │ │ ├── impl │ │ │ │ ├── InvertedFeature.java │ │ │ │ ├── JointRegressorTrainingNode.java │ │ │ │ ├── RegressorTrainingNode.java │ │ │ │ ├── TreeFeature.java │ │ │ │ └── package-info.java │ │ │ │ ├── impurity │ │ │ │ ├── MeanAbsoluteError.java │ │ │ │ ├── MeanSquaredError.java │ │ │ │ ├── RegressorImpurity.java │ │ │ │ └── package-info.java │ │ │ │ ├── package-info.java │ │ │ │ └── protos │ │ │ │ ├── IndependentRegressionTreeModelProto.java │ │ │ │ ├── IndependentRegressionTreeModelProtoOrBuilder.java │ │ │ │ ├── TreeNodeListProto.java │ │ │ │ ├── TreeNodeListProtoOrBuilder.java │ │ │ │ └── TribuoRegressionTree.java │ │ └── resources │ │ │ ├── LICENSE.txt │ │ │ ├── THIRD_PARTY_LICENSES.txt │ │ │ └── protos │ │ │ └── tribuo-regression-tree.proto │ │ └── test │ │ ├── java │ │ └── org │ │ │ └── tribuo │ │ │ └── regression │ │ │ └── rtree │ │ │ ├── TestCARTJointRegressionTrainer.java │ │ │ ├── TestCARTRegressionTrainer.java │ │ │ └── TestRegressionEnsembles.java │ │ └── resources │ │ └── org │ │ └── tribuo │ │ └── regression │ │ └── rtree │ │ ├── cart-reg-431.tribuo │ │ └── joint-cart-reg-431.tribuo ├── SGD │ ├── configs │ │ ├── linear-regression-example.xml │ │ └── regression-factorization-machine.xml │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── tribuo │ │ │ │ └── regression │ │ │ │ └── sgd │ │ │ │ ├── RegressionObjective.java │ │ │ │ ├── TrainTest.java │ │ │ │ ├── Util.java │ │ │ │ ├── fm │ │ │ │ ├── FMRegressionModel.java │ │ │ │ ├── FMRegressionTrainer.java │ │ │ │ ├── TrainTest.java │ │ │ │ └── package-info.java │ │ │ │ ├── linear │ │ │ │ ├── LinearSGDModel.java │ │ │ │ ├── LinearSGDTrainer.java │ │ │ │ └── package-info.java │ │ │ │ ├── objectives │ │ │ │ ├── AbsoluteLoss.java │ │ │ │ ├── Huber.java │ │ │ │ ├── SquaredLoss.java │ │ │ │ └── package-info.java │ │ │ │ ├── package-info.java │ │ │ │ └── protos │ │ │ │ ├── FMRegressionModelProto.java │ │ │ │ ├── FMRegressionModelProtoOrBuilder.java │ │ │ │ ├── RegressionLinearSGDProto.java │ │ │ │ ├── RegressionLinearSGDProtoOrBuilder.java │ │ │ │ └── TribuoRegressionSgd.java │ │ └── resources │ │ │ ├── LICENSE.txt │ │ │ ├── THIRD_PARTY_LICENSES.txt │ │ │ └── protos │ │ │ └── tribuo-regression-sgd.proto │ │ └── test │ │ ├── java │ │ └── org │ │ │ └── tribuo │ │ │ └── regression │ │ │ └── sgd │ │ │ ├── fm │ │ │ └── TestFMRegression.java │ │ │ └── linear │ │ │ └── TestSGDLinear.java │ │ └── resources │ │ └── org │ │ └── tribuo │ │ └── regression │ │ └── sgd │ │ ├── fm │ │ └── fm-reg-431.tribuo │ │ └── linear │ │ ├── lin-reg-431.tribuo │ │ ├── linear-4.1.0.model │ │ └── regressor-linear-sgd-4.0.2.model ├── SLM │ ├── configs │ │ ├── enet-example.xml │ │ └── lars-example.xml │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── tribuo │ │ │ │ └── regression │ │ │ │ └── slm │ │ │ │ ├── ElasticNetCDTrainer.java │ │ │ │ ├── LARSLassoTrainer.java │ │ │ │ ├── LARSTrainer.java │ │ │ │ ├── SLMTrainer.java │ │ │ │ ├── SparseLinearModel.java │ │ │ │ ├── TrainTest.java │ │ │ │ ├── package-info.java │ │ │ │ └── protos │ │ │ │ ├── SparseLinearModelProto.java │ │ │ │ ├── SparseLinearModelProtoOrBuilder.java │ │ │ │ └── TribuoRegressionSlm.java │ │ └── resources │ │ │ ├── LICENSE.txt │ │ │ ├── THIRD_PARTY_LICENSES.txt │ │ │ └── protos │ │ │ └── tribuo-regression-slm.proto │ │ └── test │ │ ├── java │ │ └── org │ │ │ └── tribuo │ │ │ └── regression │ │ │ └── slm │ │ │ └── TestSLM.java │ │ └── resources │ │ └── org │ │ └── tribuo │ │ └── regression │ │ └── slm │ │ ├── enet-4.1.0.model │ │ ├── lars-4.1.0.model │ │ └── lasso-reg-431.tribuo ├── XGBoost │ ├── configs │ │ └── xgboost-example.xml │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── tribuo │ │ │ │ └── regression │ │ │ │ └── xgboost │ │ │ │ ├── TrainTest.java │ │ │ │ ├── XGBoostOptions.java │ │ │ │ ├── XGBoostRegressionConverter.java │ │ │ │ ├── XGBoostRegressionTrainer.java │ │ │ │ └── package-info.java │ │ └── resources │ │ │ ├── LICENSE.txt │ │ │ └── THIRD_PARTY_LICENSES.txt │ │ └── test │ │ ├── java │ │ └── org │ │ │ └── tribuo │ │ │ └── regression │ │ │ └── xgboost │ │ │ └── TestXGBoost.java │ │ └── resources │ │ └── org │ │ └── tribuo │ │ └── regression │ │ └── xgboost │ │ ├── xgboost-4.1.0.model │ │ └── xgboost-reg-431.tribuo └── pom.xml ├── Reproducibility ├── pom.xml └── src │ ├── main │ └── java │ │ └── org │ │ └── tribuo │ │ └── reproducibility │ │ ├── ReproUtil.java │ │ └── package-info.java │ └── test │ ├── java │ └── org │ │ └── tribuo │ │ └── reproducibility │ │ └── ReproUtilTest.java │ └── resources │ └── org │ └── tribuo │ └── reproducibility │ ├── test.csv │ └── test │ └── new_data.csv ├── SECURITY.md ├── THIRD_PARTY_LICENSES.txt ├── Util ├── InformationTheory │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── tribuo │ │ │ │ └── util │ │ │ │ └── infotheory │ │ │ │ ├── Gamma.java │ │ │ │ ├── InformationTheory.java │ │ │ │ ├── WeightedInformationTheory.java │ │ │ │ ├── example │ │ │ │ ├── InformationTheoryDemo.java │ │ │ │ └── package-info.java │ │ │ │ ├── impl │ │ │ │ ├── CachedPair.java │ │ │ │ ├── CachedTriple.java │ │ │ │ ├── PairDistribution.java │ │ │ │ ├── Row.java │ │ │ │ ├── RowList.java │ │ │ │ ├── TripleDistribution.java │ │ │ │ ├── WeightCountTuple.java │ │ │ │ ├── WeightedPairDistribution.java │ │ │ │ ├── WeightedTripleDistribution.java │ │ │ │ └── package-info.java │ │ │ │ └── package-info.java │ │ └── resources │ │ │ ├── LICENSE.txt │ │ │ └── THIRD_PARTY_LICENSES.txt │ │ └── test │ │ └── java │ │ └── org │ │ └── tribuo │ │ └── util │ │ └── infotheory │ │ ├── GammaTest.java │ │ └── InformationTheoryTest.java ├── ONNXExport │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ ├── ai │ │ │ └── onnx │ │ │ │ └── proto │ │ │ │ ├── NOTICE.md │ │ │ │ └── OnnxMl.java │ │ └── org │ │ │ └── tribuo │ │ │ └── util │ │ │ └── onnx │ │ │ ├── ONNXAttribute.java │ │ │ ├── ONNXContext.java │ │ │ ├── ONNXInitializer.java │ │ │ ├── ONNXNode.java │ │ │ ├── ONNXOperator.java │ │ │ ├── ONNXOperators.java │ │ │ ├── ONNXPlaceholder.java │ │ │ ├── ONNXRef.java │ │ │ ├── ONNXShape.java │ │ │ ├── ONNXUtils.java │ │ │ └── package-info.java │ │ └── resources │ │ ├── LICENSE.txt │ │ └── THIRD_PARTY_LICENSES.txt ├── Tokenization │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── tribuo │ │ │ │ └── util │ │ │ │ └── tokens │ │ │ │ ├── Token.java │ │ │ │ ├── TokenizationException.java │ │ │ │ ├── Tokenizer.java │ │ │ │ ├── impl │ │ │ │ ├── BreakIteratorTokenizer.java │ │ │ │ ├── NonTokenizer.java │ │ │ │ ├── ShapeTokenizer.java │ │ │ │ ├── SplitCharactersTokenizer.java │ │ │ │ ├── SplitFunctionTokenizer.java │ │ │ │ ├── SplitPatternTokenizer.java │ │ │ │ ├── WhitespaceTokenizer.java │ │ │ │ ├── package-info.java │ │ │ │ └── wordpiece │ │ │ │ │ ├── Wordpiece.java │ │ │ │ │ ├── WordpieceBasicTokenizer.java │ │ │ │ │ ├── WordpieceTokenizer.java │ │ │ │ │ └── package-info.java │ │ │ │ ├── options │ │ │ │ ├── BreakIteratorTokenizerOptions.java │ │ │ │ ├── CoreTokenizerOptions.java │ │ │ │ ├── SplitCharactersTokenizerOptions.java │ │ │ │ ├── SplitPatternTokenizerOptions.java │ │ │ │ ├── TokenizerOptions.java │ │ │ │ └── package-info.java │ │ │ │ ├── package-info.java │ │ │ │ └── universal │ │ │ │ ├── Range.java │ │ │ │ ├── UniversalTokenizer.java │ │ │ │ └── package-info.java │ │ └── resources │ │ │ ├── LICENSE.txt │ │ │ ├── THIRD_PARTY_LICENSES.txt │ │ │ └── org │ │ │ └── tribuo │ │ │ └── util │ │ │ └── tokens │ │ │ └── stop │ │ │ ├── en.stop │ │ │ └── en.stop.readme │ │ └── test │ │ ├── java │ │ └── org │ │ │ └── tribuo │ │ │ └── util │ │ │ └── tokens │ │ │ ├── TokenizerTestBase.java │ │ │ ├── TokenizerTestWrapper.java │ │ │ ├── impl │ │ │ ├── BreakIteratorTokenizerTest.java │ │ │ ├── NonTokenizerTest.java │ │ │ ├── ShapeTokenizerTest.java │ │ │ ├── SplitCharactersTokenizerTest.java │ │ │ ├── SplitPatternTokenizerTest.java │ │ │ ├── TokenizerSerializationTest.java │ │ │ ├── UniversalTokenizerTest.java │ │ │ ├── WhitespaceTokenizerTest.java │ │ │ ├── WordpieceBasicTokenizerTest.java │ │ │ └── WordpieceTokenizerTest.java │ │ │ └── options │ │ │ └── CoreTokenizerOptionsTest.java │ │ └── resources │ │ ├── co │ │ └── huggingface │ │ │ ├── bert-base-uncased.txt │ │ │ └── bert-base-uncased.txt-README │ │ ├── org │ │ └── tribuo │ │ │ └── util │ │ │ └── tokens │ │ │ └── impl │ │ │ └── test │ │ │ ├── regression-data-sample.txt │ │ │ ├── regression-text_bert-base-uncased.txt │ │ │ └── regression-text_bert-base-uncased_fails.txt │ │ └── regression-text.txt └── pom.xml ├── distribution └── pom.xml ├── docs ├── Architecture.md ├── FAQs.md ├── HelperPrograms.md ├── Internals.md ├── PackageOverview.md ├── Roadmap.md ├── Security.md ├── example-configs │ ├── all-classification-config.xml │ ├── all-multilabel-config.xml │ └── all-regression-config.xml ├── img │ ├── Tribuo_Logo_Colour.png │ ├── Tribuo_Logo_Colour.svg │ ├── tribuo-data-flow.png │ ├── tribuo-data-flow.svg │ └── tribuo-github-social.png ├── jep-290-filter.txt ├── release-notes │ ├── tribuo-v4-0-1-release-notes.md │ ├── tribuo-v4-0-2-release-notes.md │ ├── tribuo-v4-0-release-notes.md │ ├── tribuo-v4-1-1-release-notes.md │ ├── tribuo-v4-1-release-notes.md │ ├── tribuo-v4-2-1-release-notes.md │ ├── tribuo-v4-2-2-release-notes.md │ ├── tribuo-v4-2-release-notes.md │ ├── tribuo-v4-3-1-release-notes.md │ ├── tribuo-v4-3-2-release-notes.md │ └── tribuo-v4-3-release-notes.md └── talks │ └── JavaOne-2022 │ ├── mnist-3.0.1.png │ ├── tribuo-javaone-2022.ipynb │ └── tribuo-javaone-2022.pdf ├── pom.xml ├── rebuild_protos.sh ├── sbom_generation.yaml ├── spotbugs-exclude.xml ├── tests ├── pom.xml └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── tribuo │ │ │ └── tests │ │ │ ├── Resources.java │ │ │ └── package-info.java │ └── resources │ │ ├── LICENSE.txt │ │ └── THIRD_PARTY_LICENSES.txt │ └── test │ ├── java │ └── org │ │ └── tribuo │ │ └── tests │ │ ├── csv │ │ ├── CSVLoaderWithMultiOutputsTest.java │ │ └── CSVSaverWithMultiOutputsTest.java │ │ └── onnx │ │ └── EnsembleExportTest.java │ └── resources │ └── org │ └── tribuo │ └── tests │ └── csv │ ├── multilabel.csv │ ├── multioutput-regression-noheader.csv │ └── multioutput-regression.csv └── tutorials ├── README.md ├── anomaly-tribuo-v4.ipynb ├── clustering-hdbscan-tribuo-v4.ipynb ├── clustering-tribuo-v4.ipynb ├── columnar-data ├── columnar-example.csv └── columnar-example.json ├── columnar-tribuo-v4.ipynb ├── configuration-tribuo-v4.ipynb ├── configuration ├── example-config.json └── example-config.xml ├── document-classification-tribuo-v4.ipynb ├── external-models-tribuo-v4.ipynb ├── external-models ├── pytorch_cnn_mnist.onnx ├── skl_lr_mnist.onnx └── xgb_mnist.xgb ├── feature-selection-tribuo-v4.ipynb ├── irises-tribuo-v4.ipynb ├── modelcard-tribuo-v4.ipynb ├── multi-label-tribuo-v4.ipynb ├── onnx-export-tribuo-v4.ipynb ├── regression-tribuo-v4.ipynb ├── reproducibility-tribuo-v4.ipynb ├── simple-2d-data ├── simple-2d-data-predict.csv └── simple-2d-data-train.csv └── tensorflow-tribuo-v4.ipynb /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Bug reports 4 | title: '' 5 | labels: bug 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Describe the bug** 11 | 12 | A clear and concise description of what the bug is. 13 | 14 | **To Reproduce** 15 | 16 | Steps to reproduce the behaviour, including a description of how you're using the library preferably with pseudocode or a code snippet. 17 | 18 | **Expected behaviour** 19 | 20 | A clear and concise description of what you expected to happen. 21 | 22 | **Screenshots** 23 | 24 | If applicable, add screenshots to help explain your problem. 25 | 26 | **System information:** 27 | 28 | - Tribuo Version: [e.g., 4.1.0] 29 | - OS: [e.g., Windows/macOS/Linux] 30 | - Java Version: [e.g., 8, 11, 14 etc] 31 | - JDK Vendor: [e.g., Oracle, OpenJDK etc] 32 | 33 | **Additional context** 34 | 35 | Add any other context about the problem here. 36 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: '' 5 | labels: enhancement 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Is your feature request related to a problem? Please describe.** 11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 12 | 13 | **Describe the solution you'd like** 14 | A clear and concise description of what you want to happen. 15 | 16 | **Describe alternatives you've considered** 17 | A clear and concise description of any alternative solutions or features you've considered. 18 | 19 | **Additional context** 20 | Add any other context or screenshots about the feature request here. 21 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/question.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Question 3 | about: Ask a question 4 | title: '' 5 | labels: question 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Ask the question** 11 | 12 | **Is your question about a specific ML algorithm or approach?** 13 | Please describe the ML algorithm, with appropriate links or references. 14 | 15 | **Is your question about a specific Tribuo class?** 16 | List the classes involved. 17 | 18 | **System details** 19 | - Tribuo version 20 | - Java version (if appropriate) 21 | - OS/Architecture (if appropriate) 22 | 23 | **Additional context** 24 | Add any other context or screenshots about the question 25 | -------------------------------------------------------------------------------- /.github/pull_request_template.md: -------------------------------------------------------------------------------- 1 | ### Description 2 | < Insert text describing your change > 3 | 4 | ### Motivation 5 | < Why is this change necessary? Is it a bug fix or new feature? > 6 | 7 | < Please link any relevant issues or PRs > 8 | 9 | ### Paper reference 10 | < If this PR introduces a new algorithm or ML feature, please cite the original paper > 11 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | */target/ 2 | target 3 | 4 | bin/ 5 | .settings/ 6 | 7 | .classpath 8 | .project 9 | 10 | # Intellij files 11 | *.iml 12 | .idea/ 13 | 14 | # Vim backup files 15 | *~ 16 | .*.swp 17 | 18 | # Other files 19 | *.er 20 | *.log 21 | *.bck 22 | *.so 23 | *.patch 24 | 25 | # Binaries 26 | *.jar 27 | *.class 28 | 29 | # Archives 30 | *.gz 31 | *.zip 32 | 33 | # Serialised models 34 | *.ser 35 | 36 | # Temporary stuff 37 | junk/* 38 | .DS_Store 39 | .ipynb_checkpoints 40 | 41 | # Profiling files 42 | *.jfr 43 | *.iprof 44 | *.jfc 45 | 46 | # Tutorial files 47 | tutorials/*.svm 48 | -------------------------------------------------------------------------------- /AnomalyDetection/Core/src/main/java/org/tribuo/anomaly/evaluation/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Evaluation classes for anomaly detection. 19 | *

20 | * The default metrics calculated are found in {@link org.tribuo.anomaly.evaluation.AnomalyMetrics}. 21 | *

22 | * User specified metrics are not currently supported. 23 | */ 24 | package org.tribuo.anomaly.evaluation; -------------------------------------------------------------------------------- /AnomalyDetection/Core/src/main/java/org/tribuo/anomaly/example/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides anomaly data generators used for demos and testing implementations. 19 | */ 20 | package org.tribuo.anomaly.example; -------------------------------------------------------------------------------- /AnomalyDetection/Core/src/main/java/org/tribuo/anomaly/protos/AnomalyInfoProtoOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: tribuo-anomaly-core.proto 3 | 4 | // Protobuf Java Version: 3.25.6 5 | package org.tribuo.anomaly.protos; 6 | 7 | public interface AnomalyInfoProtoOrBuilder extends 8 | // @@protoc_insertion_point(interface_extends:tribuo.anomaly.AnomalyInfoProto) 9 | com.google.protobuf.MessageOrBuilder { 10 | 11 | /** 12 | * int64 expectedCount = 1; 13 | * @return The expectedCount. 14 | */ 15 | long getExpectedCount(); 16 | 17 | /** 18 | * int64 anomalyCount = 2; 19 | * @return The anomalyCount. 20 | */ 21 | long getAnomalyCount(); 22 | 23 | /** 24 | * int32 unknownCount = 3; 25 | * @return The unknownCount. 26 | */ 27 | int getUnknownCount(); 28 | } 29 | -------------------------------------------------------------------------------- /AnomalyDetection/Core/src/main/java/org/tribuo/anomaly/protos/EventProtoOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: tribuo-anomaly-core.proto 3 | 4 | // Protobuf Java Version: 3.25.6 5 | package org.tribuo.anomaly.protos; 6 | 7 | public interface EventProtoOrBuilder extends 8 | // @@protoc_insertion_point(interface_extends:tribuo.anomaly.EventProto) 9 | com.google.protobuf.MessageOrBuilder { 10 | 11 | /** 12 | * .tribuo.anomaly.EventProto.EventType event = 1; 13 | * @return The enum numeric value on the wire for event. 14 | */ 15 | int getEventValue(); 16 | /** 17 | * .tribuo.anomaly.EventProto.EventType event = 1; 18 | * @return The event. 19 | */ 20 | org.tribuo.anomaly.protos.EventProto.EventType getEvent(); 21 | 22 | /** 23 | * double score = 2; 24 | * @return The score. 25 | */ 26 | double getScore(); 27 | } 28 | -------------------------------------------------------------------------------- /AnomalyDetection/Core/src/main/resources/LICENSE.txt: -------------------------------------------------------------------------------- 1 | ../../../../../LICENSE.txt -------------------------------------------------------------------------------- /AnomalyDetection/Core/src/main/resources/THIRD_PARTY_LICENSES.txt: -------------------------------------------------------------------------------- 1 | ../../../../../THIRD_PARTY_LICENSES.txt -------------------------------------------------------------------------------- /AnomalyDetection/Core/src/test/resources/org/tribuo/anomaly/event-anomaly-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/AnomalyDetection/Core/src/test/resources/org/tribuo/anomaly/event-anomaly-431.tribuo -------------------------------------------------------------------------------- /AnomalyDetection/Core/src/test/resources/org/tribuo/anomaly/factory-anomaly-431.tribuo: -------------------------------------------------------------------------------- 1 | !org.tribuo.anomaly.AnomalyFactory -------------------------------------------------------------------------------- /AnomalyDetection/Core/src/test/resources/org/tribuo/anomaly/immutableinfo-anomaly-431.tribuo: -------------------------------------------------------------------------------- 1 | 'org.tribuo.anomaly.ImmutableAnomalyInfo= 2 | 3type.googleapis.com/tribuo.anomaly.AnomalyInfoProto -------------------------------------------------------------------------------- /AnomalyDetection/Core/src/test/resources/org/tribuo/anomaly/mutableinfo-anomaly-431.tribuo: -------------------------------------------------------------------------------- 1 | %org.tribuo.anomaly.MutableAnomalyInfo= 2 | 3type.googleapis.com/tribuo.anomaly.AnomalyInfoProto -------------------------------------------------------------------------------- /AnomalyDetection/LibLinear/src/main/java/org/tribuo/anomaly/liblinear/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides an interface to LibLinear-java for anomaly detection problems. 19 | */ 20 | package org.tribuo.anomaly.liblinear; -------------------------------------------------------------------------------- /AnomalyDetection/LibLinear/src/main/resources/LICENSE.txt: -------------------------------------------------------------------------------- 1 | ../../../../../LICENSE.txt -------------------------------------------------------------------------------- /AnomalyDetection/LibLinear/src/main/resources/THIRD_PARTY_LICENSES.txt: -------------------------------------------------------------------------------- 1 | ../../../../../THIRD_PARTY_LICENSES.txt -------------------------------------------------------------------------------- /AnomalyDetection/LibLinear/src/test/resources/org/tribuo/anomaly/liblinear/liblinear-anomaly-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/AnomalyDetection/LibLinear/src/test/resources/org/tribuo/anomaly/liblinear/liblinear-anomaly-431.tribuo -------------------------------------------------------------------------------- /AnomalyDetection/LibSVM/src/main/java/org/tribuo/anomaly/libsvm/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides an interface to LibSVM for anomaly detection problems. 19 | */ 20 | package org.tribuo.anomaly.libsvm; -------------------------------------------------------------------------------- /AnomalyDetection/LibSVM/src/main/resources/LICENSE.txt: -------------------------------------------------------------------------------- 1 | ../../../../../LICENSE.txt -------------------------------------------------------------------------------- /AnomalyDetection/LibSVM/src/main/resources/THIRD_PARTY_LICENSES.txt: -------------------------------------------------------------------------------- 1 | ../../../../../THIRD_PARTY_LICENSES.txt -------------------------------------------------------------------------------- /AnomalyDetection/LibSVM/src/test/resources/org/tribuo/anomaly/libsvm/libsvm-anomaly-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/AnomalyDetection/LibSVM/src/test/resources/org/tribuo/anomaly/libsvm/libsvm-anomaly-431.tribuo -------------------------------------------------------------------------------- /Classification/Core/src/main/java/org/tribuo/classification/baseline/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides simple baseline multiclass classifiers. 19 | *

20 | * If you can't beat these baselines then your ML system isn't working. 21 | *

22 | */ 23 | package org.tribuo.classification.baseline; -------------------------------------------------------------------------------- /Classification/Core/src/main/java/org/tribuo/classification/ensemble/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides majority vote ensemble combiners for classification 19 | * along with an implementation of multiclass Adaboost. 20 | */ 21 | package org.tribuo.classification.ensemble; -------------------------------------------------------------------------------- /Classification/Core/src/main/java/org/tribuo/classification/example/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2021, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides a multiclass data generator used for testing implementations, along with several synthetic data generators 19 | * for 2d binary classification problems to be used in demos or tutorials. 20 | */ 21 | package org.tribuo.classification.example; -------------------------------------------------------------------------------- /Classification/Core/src/main/java/org/tribuo/classification/protos/LabelProtoOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: tribuo-classification-core.proto 3 | 4 | // Protobuf Java Version: 3.25.6 5 | package org.tribuo.classification.protos; 6 | 7 | public interface LabelProtoOrBuilder extends 8 | // @@protoc_insertion_point(interface_extends:tribuo.classification.LabelProto) 9 | com.google.protobuf.MessageOrBuilder { 10 | 11 | /** 12 | * string label = 1; 13 | * @return The label. 14 | */ 15 | java.lang.String getLabel(); 16 | /** 17 | * string label = 1; 18 | * @return The bytes for label. 19 | */ 20 | com.google.protobuf.ByteString 21 | getLabelBytes(); 22 | 23 | /** 24 | * double score = 2; 25 | * @return The score. 26 | */ 27 | double getScore(); 28 | } 29 | -------------------------------------------------------------------------------- /Classification/Core/src/main/java/org/tribuo/classification/sequence/example/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides a classification sequence data generator for smoke testing implementations. 19 | */ 20 | package org.tribuo.classification.sequence.example; -------------------------------------------------------------------------------- /Classification/Core/src/main/java/org/tribuo/classification/sequence/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides infrastructure for {@link org.tribuo.sequence.SequenceModel}s which 19 | * emit {@link org.tribuo.classification.Label}s at each step of the sequence. 20 | */ 21 | package org.tribuo.classification.sequence; -------------------------------------------------------------------------------- /Classification/Core/src/main/java/org/tribuo/classification/sequence/viterbi/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides an implementation of Viterbi for generating structured outputs, which can sit on top of any 19 | * {@link org.tribuo.classification.Label} based classification model. 20 | */ 21 | package org.tribuo.classification.sequence.viterbi; -------------------------------------------------------------------------------- /Classification/Core/src/main/resources/LICENSE.txt: -------------------------------------------------------------------------------- 1 | ../../../../../LICENSE.txt -------------------------------------------------------------------------------- /Classification/Core/src/main/resources/THIRD_PARTY_LICENSES.txt: -------------------------------------------------------------------------------- 1 | ../../../../../THIRD_PARTY_LICENSES.txt -------------------------------------------------------------------------------- /Classification/Core/src/test/resources/org/tribuo/classification/baseline/dummyclf-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Classification/Core/src/test/resources/org/tribuo/classification/baseline/dummyclf-431.tribuo -------------------------------------------------------------------------------- /Classification/Core/src/test/resources/org/tribuo/classification/factory-clf-431.tribuo: -------------------------------------------------------------------------------- 1 | &org.tribuo.classification.LabelFactory -------------------------------------------------------------------------------- /Classification/Core/src/test/resources/org/tribuo/classification/fullvote-combiner-clf-431.tribuo: -------------------------------------------------------------------------------- 1 | >org.tribuo.classification.ensemble.FullyWeightedVotingCombiner -------------------------------------------------------------------------------- /Classification/Core/src/test/resources/org/tribuo/classification/immutableinfo-clf-431.tribuo: -------------------------------------------------------------------------------- 1 | ,org.tribuo.classification.ImmutableLabelInfoZ 2 | Atype.googleapis.com/tribuo.classification.ImmutableLabelInfoProto 3 | OTHER 4 | TEST -------------------------------------------------------------------------------- /Classification/Core/src/test/resources/org/tribuo/classification/label-clf-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Classification/Core/src/test/resources/org/tribuo/classification/label-clf-431.tribuo -------------------------------------------------------------------------------- /Classification/Core/src/test/resources/org/tribuo/classification/mutableinfo-clf-431.tribuo: -------------------------------------------------------------------------------- 1 | *org.tribuo.classification.MutableLabelInfoV 2 | ?type.googleapis.com/tribuo.classification.MutableLabelInfoProto 3 | OTHER 4 | TEST -------------------------------------------------------------------------------- /Classification/Core/src/test/resources/org/tribuo/classification/vote-combiner-clf-431.tribuo: -------------------------------------------------------------------------------- 1 | 1org.tribuo.classification.ensemble.VotingCombiner -------------------------------------------------------------------------------- /Classification/DecisionTree/src/main/java/org/tribuo/classification/dtree/impl/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides internal implementation classes for classification decision trees. 19 | */ 20 | package org.tribuo.classification.dtree.impl; -------------------------------------------------------------------------------- /Classification/DecisionTree/src/main/java/org/tribuo/classification/dtree/impurity/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides classification impurity metrics for decision trees. 19 | */ 20 | package org.tribuo.classification.dtree.impurity; -------------------------------------------------------------------------------- /Classification/DecisionTree/src/main/java/org/tribuo/classification/dtree/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides implementations of decision trees for classification problems. 19 | */ 20 | package org.tribuo.classification.dtree; -------------------------------------------------------------------------------- /Classification/DecisionTree/src/main/resources/LICENSE.txt: -------------------------------------------------------------------------------- 1 | ../../../../../LICENSE.txt -------------------------------------------------------------------------------- /Classification/DecisionTree/src/main/resources/THIRD_PARTY_LICENSES.txt: -------------------------------------------------------------------------------- 1 | ../../../../../THIRD_PARTY_LICENSES.txt -------------------------------------------------------------------------------- /Classification/DecisionTree/src/test/resources/org/tribuo/classification/dtree/adaboost-clf-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Classification/DecisionTree/src/test/resources/org/tribuo/classification/dtree/adaboost-clf-431.tribuo -------------------------------------------------------------------------------- /Classification/DecisionTree/src/test/resources/org/tribuo/classification/dtree/cart-clf-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Classification/DecisionTree/src/test/resources/org/tribuo/classification/dtree/cart-clf-431.tribuo -------------------------------------------------------------------------------- /Classification/DecisionTree/src/test/resources/pure_leaf_data.csv: -------------------------------------------------------------------------------- 1 | Label,F1,F2,F3,F4 2 | A,1,0,0,0 3 | B,1,1,0,0 4 | C,0,0,1,0 5 | C,0,0,1,1 6 | D,0,0,1,1 -------------------------------------------------------------------------------- /Classification/Experiments/src/main/java/org/tribuo/classification/experiments/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides a set of main methods for interacting with classification tasks. 19 | */ 20 | package org.tribuo.classification.experiments; -------------------------------------------------------------------------------- /Classification/Experiments/src/main/resources/LICENSE.txt: -------------------------------------------------------------------------------- 1 | ../../../../../LICENSE.txt -------------------------------------------------------------------------------- /Classification/Experiments/src/main/resources/THIRD_PARTY_LICENSES.txt: -------------------------------------------------------------------------------- 1 | ../../../../../THIRD_PARTY_LICENSES.txt -------------------------------------------------------------------------------- /Classification/Explanations/src/main/java/org/tribuo/classification/explanations/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides core infrastructure for local model based explanations. 19 | */ 20 | package org.tribuo.classification.explanations; -------------------------------------------------------------------------------- /Classification/Explanations/src/main/resources/LICENSE.txt: -------------------------------------------------------------------------------- 1 | ../../../../../LICENSE.txt -------------------------------------------------------------------------------- /Classification/Explanations/src/main/resources/THIRD_PARTY_LICENSES.txt: -------------------------------------------------------------------------------- 1 | ../../../../../THIRD_PARTY_LICENSES.txt -------------------------------------------------------------------------------- /Classification/Explanations/src/test/resources/org/tribuo/classification/explanations/lime/test-columnar.csv: -------------------------------------------------------------------------------- 1 | Response,A,B,C,D,TextField 2 | Y,Small, 1.0,-1.0,Red,Many fields have text. 3 | Y,Small, 1.0,1.0,Green,In this case the word text. 4 | N,Small, 4.0,9.0,Green,Is the signifier for the class label. 5 | N,Medium,6.0,25.0,Yellow,Without that word it's not positive. 6 | N,Medium,8.0,40.0,Red,Doesn't matter what the other features are. 7 | N,Medium,9.0,20.0,Yellow,Not in the slightest. 8 | Y,Large, -1.,15.0,Green,Just needs the word text. 9 | N,Large, -2.,14.0,Red,Otherwise it's all irrelevant. 10 | N,Large, -5.,13.0,Red,Bored of typing now. -------------------------------------------------------------------------------- /Classification/LibLinear/src/main/java/org/tribuo/classification/liblinear/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides an interface to LibLinear-java for classification problems. 19 | */ 20 | package org.tribuo.classification.liblinear; -------------------------------------------------------------------------------- /Classification/LibLinear/src/main/resources/LICENSE.txt: -------------------------------------------------------------------------------- 1 | ../../../../../LICENSE.txt -------------------------------------------------------------------------------- /Classification/LibLinear/src/main/resources/THIRD_PARTY_LICENSES.txt: -------------------------------------------------------------------------------- 1 | ../../../../../THIRD_PARTY_LICENSES.txt -------------------------------------------------------------------------------- /Classification/LibLinear/src/test/resources/models/L1R_L2LOSS_SVC.model: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Classification/LibLinear/src/test/resources/models/L1R_L2LOSS_SVC.model -------------------------------------------------------------------------------- /Classification/LibLinear/src/test/resources/models/L1R_LR.model: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Classification/LibLinear/src/test/resources/models/L1R_LR.model -------------------------------------------------------------------------------- /Classification/LibLinear/src/test/resources/models/L2R_L1LOSS_SVC_DUAL.model: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Classification/LibLinear/src/test/resources/models/L2R_L1LOSS_SVC_DUAL.model -------------------------------------------------------------------------------- /Classification/LibLinear/src/test/resources/models/L2R_L2LOSS_SVC.model: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Classification/LibLinear/src/test/resources/models/L2R_L2LOSS_SVC.model -------------------------------------------------------------------------------- /Classification/LibLinear/src/test/resources/models/L2R_L2LOSS_SVC_DUAL.model: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Classification/LibLinear/src/test/resources/models/L2R_L2LOSS_SVC_DUAL.model -------------------------------------------------------------------------------- /Classification/LibLinear/src/test/resources/models/L2R_LR.model: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Classification/LibLinear/src/test/resources/models/L2R_LR.model -------------------------------------------------------------------------------- /Classification/LibLinear/src/test/resources/models/L2R_LR_DUAL.model: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Classification/LibLinear/src/test/resources/models/L2R_LR_DUAL.model -------------------------------------------------------------------------------- /Classification/LibLinear/src/test/resources/models/L2R_LR_multiclass.model: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Classification/LibLinear/src/test/resources/models/L2R_LR_multiclass.model -------------------------------------------------------------------------------- /Classification/LibLinear/src/test/resources/models/MCSVM_CS.model: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Classification/LibLinear/src/test/resources/models/MCSVM_CS.model -------------------------------------------------------------------------------- /Classification/LibLinear/src/test/resources/org/tribuo/classification/liblinear/liblinear-clf-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Classification/LibLinear/src/test/resources/org/tribuo/classification/liblinear/liblinear-clf-431.tribuo -------------------------------------------------------------------------------- /Classification/LibLinear/src/test/scripts/generate-model.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | LLTYPE=$1 4 | MODEL_NAME=$2 5 | TRAINDATA=$3 6 | TESTDATA=$4 7 | 8 | MAINCLASS="org.tribuo.classification.liblinear.TrainTest" 9 | CLASSPATH=target/tribuo-classification-liblinear-4.0.0-jar-with-dependencies.jar 10 | 11 | java -cp $CLASSPATH $MAINCLASS -s TEXT --liblinear-solver-type ${LLTYPE} -f ${MODEL_NAME}.model -u $TRAINDATA -v $TESTDATA 12 | -------------------------------------------------------------------------------- /Classification/LibSVM/src/main/java/org/tribuo/classification/libsvm/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides an interface to LibSVM for classification problems. 19 | */ 20 | package org.tribuo.classification.libsvm; -------------------------------------------------------------------------------- /Classification/LibSVM/src/main/resources/LICENSE.txt: -------------------------------------------------------------------------------- 1 | ../../../../../LICENSE.txt -------------------------------------------------------------------------------- /Classification/LibSVM/src/main/resources/THIRD_PARTY_LICENSES.txt: -------------------------------------------------------------------------------- 1 | ../../../../../THIRD_PARTY_LICENSES.txt -------------------------------------------------------------------------------- /Classification/LibSVM/src/test/resources/models/C_SVC_LINEAR.model: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Classification/LibSVM/src/test/resources/models/C_SVC_LINEAR.model -------------------------------------------------------------------------------- /Classification/LibSVM/src/test/resources/models/C_SVC_LINEAR_multiclass.model: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Classification/LibSVM/src/test/resources/models/C_SVC_LINEAR_multiclass.model -------------------------------------------------------------------------------- /Classification/LibSVM/src/test/resources/models/C_SVC_POLY.model: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Classification/LibSVM/src/test/resources/models/C_SVC_POLY.model -------------------------------------------------------------------------------- /Classification/LibSVM/src/test/resources/models/C_SVC_POLY_multiclass.model: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Classification/LibSVM/src/test/resources/models/C_SVC_POLY_multiclass.model -------------------------------------------------------------------------------- /Classification/LibSVM/src/test/resources/models/C_SVC_RBF.model: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Classification/LibSVM/src/test/resources/models/C_SVC_RBF.model -------------------------------------------------------------------------------- /Classification/LibSVM/src/test/resources/models/C_SVC_RBF_multiclass.model: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Classification/LibSVM/src/test/resources/models/C_SVC_RBF_multiclass.model -------------------------------------------------------------------------------- /Classification/LibSVM/src/test/resources/models/C_SVC_SIGMOID.model: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Classification/LibSVM/src/test/resources/models/C_SVC_SIGMOID.model -------------------------------------------------------------------------------- /Classification/LibSVM/src/test/resources/models/C_SVC_SIGMOID_multiclass.model: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Classification/LibSVM/src/test/resources/models/C_SVC_SIGMOID_multiclass.model -------------------------------------------------------------------------------- /Classification/LibSVM/src/test/resources/models/NU_SVC_LINEAR.model: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Classification/LibSVM/src/test/resources/models/NU_SVC_LINEAR.model -------------------------------------------------------------------------------- /Classification/LibSVM/src/test/resources/models/NU_SVC_LINEAR_multiclass.model: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Classification/LibSVM/src/test/resources/models/NU_SVC_LINEAR_multiclass.model -------------------------------------------------------------------------------- /Classification/LibSVM/src/test/resources/models/NU_SVC_POLY.model: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Classification/LibSVM/src/test/resources/models/NU_SVC_POLY.model -------------------------------------------------------------------------------- /Classification/LibSVM/src/test/resources/models/NU_SVC_POLY_multiclass.model: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Classification/LibSVM/src/test/resources/models/NU_SVC_POLY_multiclass.model -------------------------------------------------------------------------------- /Classification/LibSVM/src/test/resources/models/NU_SVC_RBF.model: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Classification/LibSVM/src/test/resources/models/NU_SVC_RBF.model -------------------------------------------------------------------------------- /Classification/LibSVM/src/test/resources/models/NU_SVC_RBF_multiclass.model: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Classification/LibSVM/src/test/resources/models/NU_SVC_RBF_multiclass.model -------------------------------------------------------------------------------- /Classification/LibSVM/src/test/resources/models/NU_SVC_SIGMOID.model: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Classification/LibSVM/src/test/resources/models/NU_SVC_SIGMOID.model -------------------------------------------------------------------------------- /Classification/LibSVM/src/test/resources/models/NU_SVC_SIGMOID_multiclass.model: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Classification/LibSVM/src/test/resources/models/NU_SVC_SIGMOID_multiclass.model -------------------------------------------------------------------------------- /Classification/LibSVM/src/test/resources/org/tribuo/classification/libsvm/libsvm-clf-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Classification/LibSVM/src/test/resources/org/tribuo/classification/libsvm/libsvm-clf-431.tribuo -------------------------------------------------------------------------------- /Classification/LibSVM/src/test/scripts/generate-model.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | LSTYPE=$1 4 | KTYPE=$2 5 | MODEL_NAME=$3 6 | TRAINDATA=$4 7 | TESTDATA=$5 8 | 9 | MAINCLASS="org.tribuo.classification.libsvm.TrainTest" 10 | CLASSPATH=target/tribuo-classification-libsvm-4.0.0-jar-with-dependencies.jar 11 | 12 | java -cp $CLASSPATH $MAINCLASS -s TEXT --svm-type ${LSTYPE} --svm-kernel ${KTYPE} -f ${MODEL_NAME}.model -u ${TRAINDATA} -v ${TESTDATA} 13 | -------------------------------------------------------------------------------- /Classification/MultinomialNaiveBayes/src/main/java/org/tribuo/classification/mnb/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides an implementation of multinomial naive bayes (i.e., naive bayes for non-negative count data). 19 | */ 20 | package org.tribuo.classification.mnb; -------------------------------------------------------------------------------- /Classification/MultinomialNaiveBayes/src/main/resources/LICENSE.txt: -------------------------------------------------------------------------------- 1 | ../../../../../LICENSE.txt -------------------------------------------------------------------------------- /Classification/MultinomialNaiveBayes/src/main/resources/THIRD_PARTY_LICENSES.txt: -------------------------------------------------------------------------------- 1 | ../../../../../THIRD_PARTY_LICENSES.txt -------------------------------------------------------------------------------- /Classification/MultinomialNaiveBayes/src/test/resources/org/tribuo/classification/mnb/mnb-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Classification/MultinomialNaiveBayes/src/test/resources/org/tribuo/classification/mnb/mnb-431.tribuo -------------------------------------------------------------------------------- /Classification/SGD/src/main/java/org/tribuo/classification/sgd/crf/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides an implementation of a linear chain CRF trained using Stochastic Gradient Descent. 19 | */ 20 | package org.tribuo.classification.sgd.crf; -------------------------------------------------------------------------------- /Classification/SGD/src/main/java/org/tribuo/classification/sgd/fm/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides an implementation of a classification factorization machine using Stochastic Gradient Descent. 19 | */ 20 | package org.tribuo.classification.sgd.fm; -------------------------------------------------------------------------------- /Classification/SGD/src/main/java/org/tribuo/classification/sgd/kernel/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides a SGD implementation of a Kernel SVM using the Pegasos algorithm. 19 | */ 20 | package org.tribuo.classification.sgd.kernel; -------------------------------------------------------------------------------- /Classification/SGD/src/main/java/org/tribuo/classification/sgd/linear/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides an implementation of a classification linear model using Stochastic Gradient Descent. 19 | */ 20 | package org.tribuo.classification.sgd.linear; -------------------------------------------------------------------------------- /Classification/SGD/src/main/java/org/tribuo/classification/sgd/objectives/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides classification loss functions for Stochastic Gradient Descent. 19 | */ 20 | package org.tribuo.classification.sgd.objectives; -------------------------------------------------------------------------------- /Classification/SGD/src/main/java/org/tribuo/classification/sgd/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides infrastructure for Stochastic Gradient Descent for classification problems. 19 | */ 20 | package org.tribuo.classification.sgd; -------------------------------------------------------------------------------- /Classification/SGD/src/main/resources/LICENSE.txt: -------------------------------------------------------------------------------- 1 | ../../../../../LICENSE.txt -------------------------------------------------------------------------------- /Classification/SGD/src/main/resources/THIRD_PARTY_LICENSES.txt: -------------------------------------------------------------------------------- 1 | ../../../../../THIRD_PARTY_LICENSES.txt -------------------------------------------------------------------------------- /Classification/SGD/src/test/resources/org/tribuo/classification/sgd/crf/crf-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Classification/SGD/src/test/resources/org/tribuo/classification/sgd/crf/crf-431.tribuo -------------------------------------------------------------------------------- /Classification/SGD/src/test/resources/org/tribuo/classification/sgd/fm/fm-clf-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Classification/SGD/src/test/resources/org/tribuo/classification/sgd/fm/fm-clf-431.tribuo -------------------------------------------------------------------------------- /Classification/SGD/src/test/resources/org/tribuo/classification/sgd/kernel/rbf-clf-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Classification/SGD/src/test/resources/org/tribuo/classification/sgd/kernel/rbf-clf-431.tribuo -------------------------------------------------------------------------------- /Classification/SGD/src/test/resources/org/tribuo/classification/sgd/linear/label-linear-sgd-4.0.2.model: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Classification/SGD/src/test/resources/org/tribuo/classification/sgd/linear/label-linear-sgd-4.0.2.model -------------------------------------------------------------------------------- /Classification/SGD/src/test/resources/org/tribuo/classification/sgd/linear/lin-clf-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Classification/SGD/src/test/resources/org/tribuo/classification/sgd/linear/lin-clf-431.tribuo -------------------------------------------------------------------------------- /Classification/XGBoost/src/main/resources/LICENSE.txt: -------------------------------------------------------------------------------- 1 | ../../../../../LICENSE.txt -------------------------------------------------------------------------------- /Classification/XGBoost/src/main/resources/THIRD_PARTY_LICENSES.txt: -------------------------------------------------------------------------------- 1 | ../../../../../THIRD_PARTY_LICENSES.txt -------------------------------------------------------------------------------- /Classification/XGBoost/src/test/resources/models/1.model: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Classification/XGBoost/src/test/resources/models/1.model -------------------------------------------------------------------------------- /Classification/XGBoost/src/test/resources/models/10.model: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Classification/XGBoost/src/test/resources/models/10.model -------------------------------------------------------------------------------- /Classification/XGBoost/src/test/resources/models/10_multiclass.model: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Classification/XGBoost/src/test/resources/models/10_multiclass.model -------------------------------------------------------------------------------- /Classification/XGBoost/src/test/resources/models/1_multiclass.model: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Classification/XGBoost/src/test/resources/models/1_multiclass.model -------------------------------------------------------------------------------- /Classification/XGBoost/src/test/resources/models/5.model: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Classification/XGBoost/src/test/resources/models/5.model -------------------------------------------------------------------------------- /Classification/XGBoost/src/test/resources/models/50.model: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Classification/XGBoost/src/test/resources/models/50.model -------------------------------------------------------------------------------- /Classification/XGBoost/src/test/resources/models/50_multiclass.model: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Classification/XGBoost/src/test/resources/models/50_multiclass.model -------------------------------------------------------------------------------- /Classification/XGBoost/src/test/resources/models/5_multiclass.model: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Classification/XGBoost/src/test/resources/models/5_multiclass.model -------------------------------------------------------------------------------- /Classification/XGBoost/src/test/resources/org/tribuo/classification/xgboost/xgb_mnist.xgb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Classification/XGBoost/src/test/resources/org/tribuo/classification/xgboost/xgb_mnist.xgb -------------------------------------------------------------------------------- /Classification/XGBoost/src/test/resources/org/tribuo/classification/xgboost/xgboost-clf-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Classification/XGBoost/src/test/resources/org/tribuo/classification/xgboost/xgboost-clf-431.tribuo -------------------------------------------------------------------------------- /Classification/XGBoost/src/test/resources/org/tribuo/classification/xgboost/xgboost-clf-ext-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Classification/XGBoost/src/test/resources/org/tribuo/classification/xgboost/xgboost-clf-ext-431.tribuo -------------------------------------------------------------------------------- /Classification/XGBoost/src/test/scripts/generate-model.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | NUM_TREES=$1 4 | MODEL_NAME=$2 5 | TRAINDATA=$3 6 | TESTDATA=$4 7 | 8 | MAINCLASS="org.tribuo.classification.xgboost.TrainTest" 9 | CLASSPATH=target/tribuo-classification-xgboost-4.0.0-jar-with-dependencies.jar 10 | 11 | java -cp $CLASSPATH $MAINCLASS -s TEXT --xgb-ensemble-size ${NUM_TREES} --xgb-num-threads 1 -f ${MODEL_NAME}.model -u $TRAINDATA -v $TESTDATA 12 | -------------------------------------------------------------------------------- /Clustering/Core/src/main/java/org/tribuo/clustering/evaluation/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Evaluation classes for clustering. 19 | *

20 | * The default metrics calculated are found in {@link org.tribuo.clustering.evaluation.ClusteringMetrics}. 21 | *

22 | * User specified metrics are not currently supported. 23 | */ 24 | package org.tribuo.clustering.evaluation; -------------------------------------------------------------------------------- /Clustering/Core/src/main/java/org/tribuo/clustering/example/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides clustering data generators used for demos and testing implementations. 19 | */ 20 | package org.tribuo.clustering.example; -------------------------------------------------------------------------------- /Clustering/Core/src/main/java/org/tribuo/clustering/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides classes and infrastructure for working with clustering problems. 19 | */ 20 | package org.tribuo.clustering; -------------------------------------------------------------------------------- /Clustering/Core/src/main/java/org/tribuo/clustering/protos/ClusterIDProtoOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: tribuo-clustering-core.proto 3 | 4 | // Protobuf Java Version: 3.25.6 5 | package org.tribuo.clustering.protos; 6 | 7 | public interface ClusterIDProtoOrBuilder extends 8 | // @@protoc_insertion_point(interface_extends:tribuo.clustering.ClusterIDProto) 9 | com.google.protobuf.MessageOrBuilder { 10 | 11 | /** 12 | * int32 id = 1; 13 | * @return The id. 14 | */ 15 | int getId(); 16 | 17 | /** 18 | * double score = 2; 19 | * @return The score. 20 | */ 21 | double getScore(); 22 | } 23 | -------------------------------------------------------------------------------- /Clustering/Core/src/main/resources/LICENSE.txt: -------------------------------------------------------------------------------- 1 | ../../../../../LICENSE.txt -------------------------------------------------------------------------------- /Clustering/Core/src/main/resources/THIRD_PARTY_LICENSES.txt: -------------------------------------------------------------------------------- 1 | ../../../../../THIRD_PARTY_LICENSES.txt -------------------------------------------------------------------------------- /Clustering/Core/src/test/resources/org/tribuo/clustering/clusterid-clustering-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Clustering/Core/src/test/resources/org/tribuo/clustering/clusterid-clustering-431.tribuo -------------------------------------------------------------------------------- /Clustering/Core/src/test/resources/org/tribuo/clustering/factory-clustering-431.tribuo: -------------------------------------------------------------------------------- 1 | 'org.tribuo.clustering.ClusteringFactory -------------------------------------------------------------------------------- /Clustering/Core/src/test/resources/org/tribuo/clustering/immutableinfo-clustering-431.tribuo: -------------------------------------------------------------------------------- 1 | -org.tribuo.clustering.ImmutableClusteringInfoG 2 | 9type.googleapis.com/tribuo.clustering.ClusteringInfoProto 3 | 4 |  -------------------------------------------------------------------------------- /Clustering/Core/src/test/resources/org/tribuo/clustering/mutableinfo-clustering-431.tribuo: -------------------------------------------------------------------------------- 1 | +org.tribuo.clustering.MutableClusteringInfoI 2 | 9type.googleapis.com/tribuo.clustering.ClusteringInfoProto 3 |  -------------------------------------------------------------------------------- /Clustering/GMM/src/main/java/org/tribuo/clustering/gmm/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Gaussian Mixture Model training and inference. 19 | */ 20 | package org.tribuo.clustering.gmm; -------------------------------------------------------------------------------- /Clustering/Hdbscan/src/main/java/org/tribuo/clustering/hdbscan/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides an implementation of HDBSCAN*. 19 | */ 20 | package org.tribuo.clustering.hdbscan; 21 | -------------------------------------------------------------------------------- /Clustering/Hdbscan/src/main/resources/LICENSE.txt: -------------------------------------------------------------------------------- 1 | ../../../../../LICENSE.txt -------------------------------------------------------------------------------- /Clustering/Hdbscan/src/main/resources/THIRD_PARTY_LICENSES.txt: -------------------------------------------------------------------------------- 1 | ../../../../../THIRD_PARTY_LICENSES.txt -------------------------------------------------------------------------------- /Clustering/Hdbscan/src/test/resources/Hdbscan_minClSize7_L2_k7_nt1_v4.2.model: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Clustering/Hdbscan/src/test/resources/Hdbscan_minClSize7_L2_k7_nt1_v4.2.model -------------------------------------------------------------------------------- /Clustering/Hdbscan/src/test/resources/basic-gaussians-predict-with-outliers.csv: -------------------------------------------------------------------------------- 1 | Feature1,Feature2,Feature3 2 | -2.3302356259487063,3.9431416146381046,1.0315528543744679 3 | 12.5,15.0,17.1 4 | 0.41679363204429154,8.247732287302664,9.810651956897404 5 | -16.0,-13.3,14.4 6 | 1.2947698963877157,-1.0272570581099394,1.6991984313559259 7 | -14.9,-13.9,-15.5 8 | -------------------------------------------------------------------------------- /Clustering/Hdbscan/src/test/resources/org/tribuo/clustering/hdbscan/hdbscan-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Clustering/Hdbscan/src/test/resources/org/tribuo/clustering/hdbscan/hdbscan-431.tribuo -------------------------------------------------------------------------------- /Clustering/KMeans/src/main/java/org/tribuo/clustering/kmeans/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides a multithreaded implementation of K-Means, with a 19 | * configurable distance function. 20 | */ 21 | package org.tribuo.clustering.kmeans; -------------------------------------------------------------------------------- /Clustering/KMeans/src/main/resources/LICENSE.txt: -------------------------------------------------------------------------------- 1 | ../../../../../LICENSE.txt -------------------------------------------------------------------------------- /Clustering/KMeans/src/main/resources/THIRD_PARTY_LICENSES.txt: -------------------------------------------------------------------------------- 1 | ../../../../../THIRD_PARTY_LICENSES.txt -------------------------------------------------------------------------------- /Clustering/KMeans/src/test/resources/org/tribuo/clustering/kmeans/kmeans-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Clustering/KMeans/src/test/resources/org/tribuo/clustering/kmeans/kmeans-431.tribuo -------------------------------------------------------------------------------- /Common/LibLinear/src/main/java/org/tribuo/common/liblinear/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides base classes for using liblinear from Tribuo. 19 | */ 20 | package org.tribuo.common.liblinear; -------------------------------------------------------------------------------- /Common/LibLinear/src/main/resources/LICENSE.txt: -------------------------------------------------------------------------------- 1 | ../../../../../LICENSE.txt -------------------------------------------------------------------------------- /Common/LibLinear/src/main/resources/THIRD_PARTY_LICENSES.txt: -------------------------------------------------------------------------------- 1 | ../../../../../THIRD_PARTY_LICENSES.txt -------------------------------------------------------------------------------- /Common/LibSVM/src/main/java/org/tribuo/common/libsvm/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * The base interface to LibSVM. 19 | */ 20 | package org.tribuo.common.libsvm; -------------------------------------------------------------------------------- /Common/LibSVM/src/main/resources/LICENSE.txt: -------------------------------------------------------------------------------- 1 | ../../../../../LICENSE.txt -------------------------------------------------------------------------------- /Common/LibSVM/src/main/resources/THIRD_PARTY_LICENSES.txt: -------------------------------------------------------------------------------- 1 | ../../../../../THIRD_PARTY_LICENSES.txt -------------------------------------------------------------------------------- /Common/NearestNeighbour/src/main/java/org/tribuo/common/nearest/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides a K-Nearest Neighbours implementation which works across 19 | * all Tribuo {@link org.tribuo.Output} types. 20 | */ 21 | package org.tribuo.common.nearest; -------------------------------------------------------------------------------- /Common/NearestNeighbour/src/main/resources/LICENSE.txt: -------------------------------------------------------------------------------- 1 | ../../../../../LICENSE.txt -------------------------------------------------------------------------------- /Common/NearestNeighbour/src/main/resources/THIRD_PARTY_LICENSES.txt: -------------------------------------------------------------------------------- 1 | ../../../../../THIRD_PARTY_LICENSES.txt -------------------------------------------------------------------------------- /Common/NearestNeighbour/src/test/resources/KNNTrainerRegressor_k3_L2_nt2_voting_streams_v4.2.model: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Common/NearestNeighbour/src/test/resources/KNNTrainerRegressor_k3_L2_nt2_voting_streams_v4.2.model -------------------------------------------------------------------------------- /Common/NearestNeighbour/src/test/resources/org/tribuo/common/nearest/knn-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Common/NearestNeighbour/src/test/resources/org/tribuo/common/nearest/knn-431.tribuo -------------------------------------------------------------------------------- /Common/SGD/src/main/java/org/tribuo/common/sgd/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides the base classes for models trained with stochastic gradient descent. 19 | */ 20 | package org.tribuo.common.sgd; -------------------------------------------------------------------------------- /Common/SGD/src/main/resources/LICENSE.txt: -------------------------------------------------------------------------------- 1 | ../../../../../LICENSE.txt -------------------------------------------------------------------------------- /Common/SGD/src/main/resources/THIRD_PARTY_LICENSES.txt: -------------------------------------------------------------------------------- 1 | ../../../../../THIRD_PARTY_LICENSES.txt -------------------------------------------------------------------------------- /Common/Trees/src/main/java/org/tribuo/common/tree/impl/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides internal implementation classes for building decision trees. 19 | */ 20 | package org.tribuo.common.tree.impl; -------------------------------------------------------------------------------- /Common/Trees/src/main/java/org/tribuo/common/tree/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides common functionality for building decision trees, irrespective 19 | * of the predicted {@link org.tribuo.Output}. Also 20 | * has implementations of Random Forests and Extra Trees. 21 | */ 22 | package org.tribuo.common.tree; -------------------------------------------------------------------------------- /Common/Trees/src/main/resources/LICENSE.txt: -------------------------------------------------------------------------------- 1 | ../../../../../LICENSE.txt -------------------------------------------------------------------------------- /Common/Trees/src/main/resources/THIRD_PARTY_LICENSES.txt: -------------------------------------------------------------------------------- 1 | ../../../../../THIRD_PARTY_LICENSES.txt -------------------------------------------------------------------------------- /Common/XGBoost/src/main/resources/LICENSE.txt: -------------------------------------------------------------------------------- 1 | ../../../../../LICENSE.txt -------------------------------------------------------------------------------- /Common/XGBoost/src/main/resources/THIRD_PARTY_LICENSES.txt: -------------------------------------------------------------------------------- 1 | ../../../../../THIRD_PARTY_LICENSES.txt -------------------------------------------------------------------------------- /Core/src/main/java/org/tribuo/WeightedExamples.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.tribuo; 18 | 19 | /** 20 | * Tag interface denoting that a {@link Trainer} can use example weights. 21 | */ 22 | public interface WeightedExamples { } 23 | -------------------------------------------------------------------------------- /Core/src/main/java/org/tribuo/dataset/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides utility datasets which subsample or otherwise 19 | * transform the wrapped dataset. 20 | */ 21 | package org.tribuo.dataset; -------------------------------------------------------------------------------- /Core/src/main/java/org/tribuo/datasource/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Simple data sources for ingesting or aggregating data. 19 | */ 20 | package org.tribuo.datasource; -------------------------------------------------------------------------------- /Core/src/main/java/org/tribuo/ensemble/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides an interface for model prediction combinations, 19 | * two base classes for ensemble models, a base class for 20 | * ensemble excuses, and a Bagging implementation. 21 | */ 22 | package org.tribuo.ensemble; -------------------------------------------------------------------------------- /Core/src/main/java/org/tribuo/evaluation/metrics/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * This package contains the infrastructure classes for building evaluation metrics. 19 | */ 20 | package org.tribuo.evaluation.metrics; -------------------------------------------------------------------------------- /Core/src/main/java/org/tribuo/evaluation/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Evaluation base classes, along with code for train/test splits and cross validation. 19 | */ 20 | package org.tribuo.evaluation; -------------------------------------------------------------------------------- /Core/src/main/java/org/tribuo/protos/core/IDFTransformerProtoOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: tribuo-core-impl.proto 3 | 4 | // Protobuf Java Version: 3.25.6 5 | package org.tribuo.protos.core; 6 | 7 | public interface IDFTransformerProtoOrBuilder extends 8 | // @@protoc_insertion_point(interface_extends:tribuo.core.IDFTransformerProto) 9 | com.google.protobuf.MessageOrBuilder { 10 | 11 | /** 12 | * double df = 1; 13 | * @return The df. 14 | */ 15 | double getDf(); 16 | 17 | /** 18 | * double N = 2; 19 | * @return The n. 20 | */ 21 | double getN(); 22 | } 23 | -------------------------------------------------------------------------------- /Core/src/main/java/org/tribuo/protos/core/LinearScalingTransformerProtoOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: tribuo-core-impl.proto 3 | 4 | // Protobuf Java Version: 3.25.6 5 | package org.tribuo.protos.core; 6 | 7 | public interface LinearScalingTransformerProtoOrBuilder extends 8 | // @@protoc_insertion_point(interface_extends:tribuo.core.LinearScalingTransformerProto) 9 | com.google.protobuf.MessageOrBuilder { 10 | 11 | /** 12 | * double observedMin = 1; 13 | * @return The observedMin. 14 | */ 15 | double getObservedMin(); 16 | 17 | /** 18 | * double observedMax = 2; 19 | * @return The observedMax. 20 | */ 21 | double getObservedMax(); 22 | 23 | /** 24 | * double targetMin = 3; 25 | * @return The targetMin. 26 | */ 27 | double getTargetMin(); 28 | 29 | /** 30 | * double targetMax = 4; 31 | * @return The targetMax. 32 | */ 33 | double getTargetMax(); 34 | } 35 | -------------------------------------------------------------------------------- /Core/src/main/java/org/tribuo/protos/core/MeanStdDevTransformerProtoOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: tribuo-core-impl.proto 3 | 4 | // Protobuf Java Version: 3.25.6 5 | package org.tribuo.protos.core; 6 | 7 | public interface MeanStdDevTransformerProtoOrBuilder extends 8 | // @@protoc_insertion_point(interface_extends:tribuo.core.MeanStdDevTransformerProto) 9 | com.google.protobuf.MessageOrBuilder { 10 | 11 | /** 12 | * double observedMean = 1; 13 | * @return The observedMean. 14 | */ 15 | double getObservedMean(); 16 | 17 | /** 18 | * double observedStdDev = 2; 19 | * @return The observedStdDev. 20 | */ 21 | double getObservedStdDev(); 22 | 23 | /** 24 | * double targetMean = 3; 25 | * @return The targetMean. 26 | */ 27 | double getTargetMean(); 28 | 29 | /** 30 | * double targetStdDev = 4; 31 | * @return The targetStdDev. 32 | */ 33 | double getTargetStdDev(); 34 | } 35 | -------------------------------------------------------------------------------- /Core/src/main/java/org/tribuo/protos/core/MessageDigestHasherProtoOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: tribuo-core-impl.proto 3 | 4 | // Protobuf Java Version: 3.25.6 5 | package org.tribuo.protos.core; 6 | 7 | public interface MessageDigestHasherProtoOrBuilder extends 8 | // @@protoc_insertion_point(interface_extends:tribuo.core.MessageDigestHasherProto) 9 | com.google.protobuf.MessageOrBuilder { 10 | 11 | /** 12 | * string hash_type = 1; 13 | * @return The hashType. 14 | */ 15 | java.lang.String getHashType(); 16 | /** 17 | * string hash_type = 1; 18 | * @return The bytes for hashType. 19 | */ 20 | com.google.protobuf.ByteString 21 | getHashTypeBytes(); 22 | } 23 | -------------------------------------------------------------------------------- /Core/src/main/java/org/tribuo/protos/core/ModHashCodeHasherProtoOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: tribuo-core-impl.proto 3 | 4 | // Protobuf Java Version: 3.25.6 5 | package org.tribuo.protos.core; 6 | 7 | public interface ModHashCodeHasherProtoOrBuilder extends 8 | // @@protoc_insertion_point(interface_extends:tribuo.core.ModHashCodeHasherProto) 9 | com.google.protobuf.MessageOrBuilder { 10 | 11 | /** 12 | * int32 dimension = 1; 13 | * @return The dimension. 14 | */ 15 | int getDimension(); 16 | } 17 | -------------------------------------------------------------------------------- /Core/src/main/java/org/tribuo/protos/core/SimpleTransformProtoOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: tribuo-core-impl.proto 3 | 4 | // Protobuf Java Version: 3.25.6 5 | package org.tribuo.protos.core; 6 | 7 | public interface SimpleTransformProtoOrBuilder extends 8 | // @@protoc_insertion_point(interface_extends:tribuo.core.SimpleTransformProto) 9 | com.google.protobuf.MessageOrBuilder { 10 | 11 | /** 12 | * string op = 1; 13 | * @return The op. 14 | */ 15 | java.lang.String getOp(); 16 | /** 17 | * string op = 1; 18 | * @return The bytes for op. 19 | */ 20 | com.google.protobuf.ByteString 21 | getOpBytes(); 22 | 23 | /** 24 | * double first_operand = 2; 25 | * @return The firstOperand. 26 | */ 27 | double getFirstOperand(); 28 | 29 | /** 30 | * double second_operand = 3; 31 | * @return The secondOperand. 32 | */ 33 | double getSecondOperand(); 34 | } 35 | -------------------------------------------------------------------------------- /Core/src/main/java/org/tribuo/provenance/DataProvenance.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.tribuo.provenance; 18 | 19 | import com.oracle.labs.mlrg.olcut.provenance.ObjectProvenance; 20 | 21 | /** 22 | * Tag interface for data sources provenances. 23 | */ 24 | public interface DataProvenance extends ObjectProvenance { } 25 | -------------------------------------------------------------------------------- /Core/src/main/java/org/tribuo/provenance/FeatureSelectorProvenance.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.tribuo.provenance; 18 | 19 | import com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance; 20 | 21 | /** 22 | * A tag interface for feature selection algorithms. 23 | */ 24 | public interface FeatureSelectorProvenance extends ConfiguredObjectProvenance { } 25 | -------------------------------------------------------------------------------- /Core/src/main/java/org/tribuo/provenance/impl/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides internal implementations for empty provenance classes and TrainerProvenance. 19 | */ 20 | package org.tribuo.provenance.impl; -------------------------------------------------------------------------------- /Core/src/main/java/org/tribuo/provenance/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides Tribuo specific infrastructure for the 19 | * {@link com.oracle.labs.mlrg.olcut.provenance.Provenance} system which 20 | * tracks models and datasets. 21 | */ 22 | package org.tribuo.provenance; -------------------------------------------------------------------------------- /Core/src/main/java/org/tribuo/sequence/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides core classes for working with sequences of {@link org.tribuo.Example}s. 19 | *

20 | * Mirrors the classes in {@link org.tribuo} but operating on {@link org.tribuo.sequence.SequenceExample}. 21 | *

22 | */ 23 | package org.tribuo.sequence; -------------------------------------------------------------------------------- /Core/src/main/java/org/tribuo/transform/TransformationProvenance.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.tribuo.transform; 18 | 19 | import com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance; 20 | 21 | /** 22 | * A tag interface for provenances in the transformation system. 23 | */ 24 | public interface TransformationProvenance extends ConfiguredObjectProvenance { 25 | } 26 | -------------------------------------------------------------------------------- /Core/src/main/java/org/tribuo/transform/transformations/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides implementations of standard transformations like binning, scaling, taking logs and exponents. 19 | */ 20 | package org.tribuo.transform.transformations; -------------------------------------------------------------------------------- /Core/src/main/java/org/tribuo/util/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides utilities which don't have other Tribuo dependencies. 19 | *

20 | * The main class is {@link org.tribuo.util.Util} which has static methods for 21 | * working with arrays and sampling various distributions using an rng. 22 | */ 23 | package org.tribuo.util; -------------------------------------------------------------------------------- /Core/src/main/javadoc/overview.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Tribuo Javadoc Overview 5 | 6 | 7 | Tribuo is a library for building and deploying Machine Learning models. 8 | It provides classification, regression, clustering, anomaly detection and multi-label classification algorithms. 9 | Tribuo is strongly typed, with most of the relevant types living in the {@link org.tribuo} package. Task specific 10 | types live in the root package of that task (e.g., {@link org.tribuo.classification}). Tribuo is modular, 11 | each package/module is scoped to have minimal dependencies, and there are few cross-cutting packages. 12 | Tribuo's development is lead by Oracle Labs' Machine Learning Research 13 | Group, the source is hosted on Github, and more documentation is 14 | available on the project website tribuo.org. 15 | 16 | 17 | -------------------------------------------------------------------------------- /Core/src/main/resources/META-INF/LICENSE.txt: -------------------------------------------------------------------------------- 1 | ../../../../../LICENSE.txt -------------------------------------------------------------------------------- /Core/src/main/resources/META-INF/THIRD_PARTY_LICENSES.txt: -------------------------------------------------------------------------------- 1 | ../../../../../THIRD_PARTY_LICENSES.txt -------------------------------------------------------------------------------- /Core/src/test/java/org/tribuo/test/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Mocked up implementations of core Tribuo interfaces for tests. 19 | */ 20 | package org.tribuo.test; -------------------------------------------------------------------------------- /Core/src/test/java/org/tribuo/test/protos/MockOutputProtoOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: tribuo-core-test.proto 3 | 4 | // Protobuf Java Version: 3.25.6 5 | package org.tribuo.test.protos; 6 | 7 | public interface MockOutputProtoOrBuilder extends 8 | // @@protoc_insertion_point(interface_extends:tribuo.core.MockOutputProto) 9 | com.google.protobuf.MessageOrBuilder { 10 | 11 | /** 12 | * string label = 1; 13 | * @return The label. 14 | */ 15 | java.lang.String getLabel(); 16 | /** 17 | * string label = 1; 18 | * @return The bytes for label. 19 | */ 20 | com.google.protobuf.ByteString 21 | getLabelBytes(); 22 | } 23 | -------------------------------------------------------------------------------- /Core/src/test/resources/org/tribuo/array-example-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Core/src/test/resources/org/tribuo/array-example-431.tribuo -------------------------------------------------------------------------------- /Core/src/test/resources/org/tribuo/binary-example-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Core/src/test/resources/org/tribuo/binary-example-431.tribuo -------------------------------------------------------------------------------- /Core/src/test/resources/org/tribuo/categorical-id-info-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Core/src/test/resources/org/tribuo/categorical-id-info-431.tribuo -------------------------------------------------------------------------------- /Core/src/test/resources/org/tribuo/categorical-info-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Core/src/test/resources/org/tribuo/categorical-info-431.tribuo -------------------------------------------------------------------------------- /Core/src/test/resources/org/tribuo/dataset-view-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Core/src/test/resources/org/tribuo/dataset-view-431.tribuo -------------------------------------------------------------------------------- /Core/src/test/resources/org/tribuo/dataset/selected-feature-dataset-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Core/src/test/resources/org/tribuo/dataset/selected-feature-dataset-431.tribuo -------------------------------------------------------------------------------- /Core/src/test/resources/org/tribuo/dataset/selected-feature-set-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Core/src/test/resources/org/tribuo/dataset/selected-feature-set-431.tribuo -------------------------------------------------------------------------------- /Core/src/test/resources/org/tribuo/datasource/byte-mat.idx: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /Core/src/test/resources/org/tribuo/datasource/byte.idx: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /Core/src/test/resources/org/tribuo/datasource/incorrect-num-dims.idx: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /Core/src/test/resources/org/tribuo/datasource/int.idx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Core/src/test/resources/org/tribuo/datasource/int.idx -------------------------------------------------------------------------------- /Core/src/test/resources/org/tribuo/datasource/invalid-dim-byte.idx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Core/src/test/resources/org/tribuo/datasource/invalid-dim-byte.idx -------------------------------------------------------------------------------- /Core/src/test/resources/org/tribuo/datasource/invalid-magic-byte.idx: -------------------------------------------------------------------------------- 1 |   -------------------------------------------------------------------------------- /Core/src/test/resources/org/tribuo/datasource/invalid-type-byte.idx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Core/src/test/resources/org/tribuo/datasource/invalid-type-byte.idx -------------------------------------------------------------------------------- /Core/src/test/resources/org/tribuo/datasource/no-data.idx: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /Core/src/test/resources/org/tribuo/datasource/output.idx: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /Core/src/test/resources/org/tribuo/datasource/outputs-long.idx: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /Core/src/test/resources/org/tribuo/datasource/outputs.idx: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /Core/src/test/resources/org/tribuo/datasource/test-1.libsvm: -------------------------------------------------------------------------------- 1 | 1 0:-0.5 1:2.7 2:50 3:-1.3 5:9 6:86 2 | 1 0:-1 1:2.7 3:-1.3 5:-1.3 6:86 3 | 0 0:1 2:50 3:-1.3 5:2.3 4 | 1 1:2.7 2:25 3:-1.3 5:-1.3 6:86 5 | 0 0:5.5 1:2.7 2:70 3:-1.6 6:86 6 | 1 0:3.5 1:2.7 2:10 5:-1.3 6:86 7 | 0 1:2.7 2:50 3:-1.3 5:-5.3 6:86 8 | 0 0:5.5 1:2.7 3:-1.3 5:-1.3 9 | 1 0:1 1:2.7 3:-1.3 4:2 6:86 -------------------------------------------------------------------------------- /Core/src/test/resources/org/tribuo/datasource/too-little-data.idx: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /Core/src/test/resources/org/tribuo/datasource/too-much-data.idx: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /Core/src/test/resources/org/tribuo/feature-map-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Core/src/test/resources/org/tribuo/feature-map-431.tribuo -------------------------------------------------------------------------------- /Core/src/test/resources/org/tribuo/hash/hashed-feature-map-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Core/src/test/resources/org/tribuo/hash/hashed-feature-map-431.tribuo -------------------------------------------------------------------------------- /Core/src/test/resources/org/tribuo/hash/hc-hasher-431.tribuo: -------------------------------------------------------------------------------- 1 | org.tribuo.hash.HashCodeHasher -------------------------------------------------------------------------------- /Core/src/test/resources/org/tribuo/hash/md-hasher-431.tribuo: -------------------------------------------------------------------------------- 1 | #org.tribuo.hash.MessageDigestHasherE 2 | 8type.googleapis.com/tribuo.core.MessageDigestHasherProto 3 | SHA-256 -------------------------------------------------------------------------------- /Core/src/test/resources/org/tribuo/hash/mod-hasher-431.tribuo: -------------------------------------------------------------------------------- 1 | !org.tribuo.hash.ModHashCodeHasher< 2 | 6type.googleapis.com/tribuo.core.ModHashCodeHasherProtod -------------------------------------------------------------------------------- /Core/src/test/resources/org/tribuo/immutable-dataset-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Core/src/test/resources/org/tribuo/immutable-dataset-431.tribuo -------------------------------------------------------------------------------- /Core/src/test/resources/org/tribuo/immutable-feature-map-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Core/src/test/resources/org/tribuo/immutable-feature-map-431.tribuo -------------------------------------------------------------------------------- /Core/src/test/resources/org/tribuo/indexed-example-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Core/src/test/resources/org/tribuo/indexed-example-431.tribuo -------------------------------------------------------------------------------- /Core/src/test/resources/org/tribuo/list-example-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Core/src/test/resources/org/tribuo/list-example-431.tribuo -------------------------------------------------------------------------------- /Core/src/test/resources/org/tribuo/minimum-cardinality-dataset-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Core/src/test/resources/org/tribuo/minimum-cardinality-dataset-431.tribuo -------------------------------------------------------------------------------- /Core/src/test/resources/org/tribuo/mutable-dataset-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Core/src/test/resources/org/tribuo/mutable-dataset-431.tribuo -------------------------------------------------------------------------------- /Core/src/test/resources/org/tribuo/prediction-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Core/src/test/resources/org/tribuo/prediction-431.tribuo -------------------------------------------------------------------------------- /Core/src/test/resources/org/tribuo/real-id-info-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Core/src/test/resources/org/tribuo/real-id-info-431.tribuo -------------------------------------------------------------------------------- /Core/src/test/resources/org/tribuo/real-info-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Core/src/test/resources/org/tribuo/real-info-431.tribuo -------------------------------------------------------------------------------- /Core/src/test/resources/org/tribuo/sequence/immutable-sequence-dataset-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Core/src/test/resources/org/tribuo/sequence/immutable-sequence-dataset-431.tribuo -------------------------------------------------------------------------------- /Core/src/test/resources/org/tribuo/sequence/independent-sequence-model-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Core/src/test/resources/org/tribuo/sequence/independent-sequence-model-431.tribuo -------------------------------------------------------------------------------- /Core/src/test/resources/org/tribuo/sequence/minimum-cardinality-sequence-dataset-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Core/src/test/resources/org/tribuo/sequence/minimum-cardinality-sequence-dataset-431.tribuo -------------------------------------------------------------------------------- /Core/src/test/resources/org/tribuo/sequence/mutable-sequence-dataset-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Core/src/test/resources/org/tribuo/sequence/mutable-sequence-dataset-431.tribuo -------------------------------------------------------------------------------- /Core/src/test/resources/org/tribuo/sequence/sequence-example-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Core/src/test/resources/org/tribuo/sequence/sequence-example-431.tribuo -------------------------------------------------------------------------------- /Core/src/test/resources/org/tribuo/transform/transformed-model-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Core/src/test/resources/org/tribuo/transform/transformed-model-431.tribuo -------------------------------------------------------------------------------- /Data/src/main/java/org/tribuo/data/columnar/processors/feature/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides implementations of {@link org.tribuo.data.columnar.FeatureProcessor}. 19 | */ 20 | package org.tribuo.data.columnar.processors.feature; -------------------------------------------------------------------------------- /Data/src/main/java/org/tribuo/data/columnar/processors/field/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides implementations of {@link org.tribuo.data.columnar.FieldProcessor}. 19 | */ 20 | package org.tribuo.data.columnar.processors.field; -------------------------------------------------------------------------------- /Data/src/main/java/org/tribuo/data/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides classes for loading in data from disk, processing it into examples, and splitting datasets for 19 | * things like cross-validation and train-test splits. 20 | */ 21 | package org.tribuo.data; -------------------------------------------------------------------------------- /Data/src/main/java/org/tribuo/data/text/impl/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides implementations of text data processors. 19 | */ 20 | package org.tribuo.data.text.impl; -------------------------------------------------------------------------------- /Data/src/main/java/org/tribuo/data/text/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides interfaces for converting text inputs into {@link org.tribuo.Feature}s and {@link org.tribuo.Example}s. 19 | */ 20 | package org.tribuo.data.text; -------------------------------------------------------------------------------- /Data/src/main/resources/LICENSE.txt: -------------------------------------------------------------------------------- 1 | ../../../../LICENSE.txt -------------------------------------------------------------------------------- /Data/src/main/resources/THIRD_PARTY_LICENSES.txt: -------------------------------------------------------------------------------- 1 | ../../../../THIRD_PARTY_LICENSES.txt -------------------------------------------------------------------------------- /Data/src/test/resources/org/tribuo/data/csv/test-bom.csv: -------------------------------------------------------------------------------- 1 | A,B,C,D,RESPONSE 2 | 1,2,3,4,monkey 3 | 2,5,3,4,monkey 4 | 1,2,5,9,baboon 5 | 3,5,8,4,monkey 6 | 6,7,8,9,baboon 7 | 0,7,8,9,baboon -------------------------------------------------------------------------------- /Data/src/test/resources/org/tribuo/data/csv/test-double-line-break.csv: -------------------------------------------------------------------------------- 1 | A,B,C,D,RESPONSE 2 | 1,2,3,4,monkey 3 | 2,5,3,4,monkey 4 | 1,2,5,9,baboon 5 | 6 | 3,5,8,4,monkey 7 | 6,7,8,9,baboon 8 | 0,7,8,9,baboon 9 | 10 | -------------------------------------------------------------------------------- /Data/src/test/resources/org/tribuo/data/csv/test-missingoutput.csv: -------------------------------------------------------------------------------- 1 | A,B,C,D,R1,R2 2 | 1,2,3,4,TRUE, 3 | 6,7,8,9,TRUE,TRUE 4 | 6,7,8,9,, 5 | 2,5,3,4,TRUE, 6 | 1,2,5,9,,TRUE 7 | 0,2,5,9,,TRUE 8 | -------------------------------------------------------------------------------- /Data/src/test/resources/org/tribuo/data/csv/test-multioutput-singlecolumn.csv: -------------------------------------------------------------------------------- 1 | A,B,C,D,Label 2 | 1,2,3,4,"R1" 3 | 6,7,8,9,"R1,R2" 4 | 6,7,8,9, 5 | 2,5,3,4,"R1" 6 | 1,2,5,9,"R2" 7 | 0,2,5,9,"R2" 8 | -------------------------------------------------------------------------------- /Data/src/test/resources/org/tribuo/data/csv/test-multioutput.csv: -------------------------------------------------------------------------------- 1 | A,B,C,D,R1,R2 2 | 1,2,3,4,TRUE,FALSE 3 | 6,7,8,9,TRUE,TRUE 4 | 6,7,8,9,FALSE,FALSE 5 | 2,5,3,4,TRUE,FALSE 6 | 1,2,5,9,FALSE,TRUE 7 | 0,2,5,9,FALSE,TRUE 8 | -------------------------------------------------------------------------------- /Data/src/test/resources/org/tribuo/data/csv/test-noheader.csv: -------------------------------------------------------------------------------- 1 | 1,2,3,4,monkey 2 | 2,5,3,4,monkey 3 | 1,2,5,9,baboon 4 | 3,5,8,4,monkey 5 | 6,7,8,9,baboon 6 | 0,7,8,9,baboon -------------------------------------------------------------------------------- /Data/src/test/resources/org/tribuo/data/csv/test-regexmapping.csv: -------------------------------------------------------------------------------- 1 | fooA,fooB,fooC,fooD,RESPONSE 2 | 1,2,3,4,monkey 3 | 2,5,3,4,monkey 4 | 1,2,5,9,baboon 5 | 3,5,8,4,monkey 6 | 6,7,8,9,baboon 7 | 0,7,8,9,baboon 8 | -------------------------------------------------------------------------------- /Data/src/test/resources/org/tribuo/data/csv/test.csv: -------------------------------------------------------------------------------- 1 | A,B,C,D,RESPONSE 2 | 1,2,3,4,monkey 3 | 2,5,3,4,monkey 4 | 1,2,5,9,baboon 5 | 3,5,8,4,monkey 6 | 6,7,8,9,baboon 7 | 0,7,8,9,baboon 8 | -------------------------------------------------------------------------------- /Data/src/test/resources/org/tribuo/data/csv/testQuote.csv: -------------------------------------------------------------------------------- 1 | "A","B","C","D","RESPONSE" 2 | "1","2","3","4","monkey" 3 | "2","5","3","4","monkey" 4 | "1","2","5","9","baboon" 5 | "3","5","8","4","monkey" 6 | "6","7","8","9","baboon" 7 | "0","7","8","9","baboon" 8 | -------------------------------------------------------------------------------- /Data/src/test/resources/org/tribuo/data/csv/testQuote.tsv: -------------------------------------------------------------------------------- 1 | |A| |B| |C| |D| |RESPONSE| 2 | |1| |2| |3| |4| |monkey| 3 | |2| |5| |3| |4| |monkey| 4 | |1| |2| |5| |9| |baboon| 5 | |3| |5| |8| |4| |monkey| 6 | |6| |7| |8| |9| |baboon| 7 | |0| |7| |8| |9| |baboon| 8 | -------------------------------------------------------------------------------- /Interop/Core/src/main/java/org/tribuo/interop/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * This package contains the abstract implementation of an external model 19 | * trained by something outside of Tribuo. It also contains provenance 20 | * classes for describing external models. 21 | */ 22 | package org.tribuo.interop; -------------------------------------------------------------------------------- /Interop/Core/src/main/resources/LICENSE.txt: -------------------------------------------------------------------------------- 1 | ../../../../../LICENSE.txt -------------------------------------------------------------------------------- /Interop/Core/src/main/resources/THIRD_PARTY_LICENSES.txt: -------------------------------------------------------------------------------- 1 | ../../../../../THIRD_PARTY_LICENSES.txt -------------------------------------------------------------------------------- /Interop/ModelCard/src/test/resources/classificationSampleData.csv: -------------------------------------------------------------------------------- 1 | response, a, b, c, d 2 | a, 1, 2, 2, 3 3 | a, 4, 4, 5, 7 4 | b, 9, 0, 1, 2 5 | b, 2, 3, 5, 8 6 | b, 4, 4, 5, 7 7 | a, 9, 0, 1, 2 8 | b, 2, 3, 5, 8 9 | b, 2, 3, 5, 8 10 | a, 4, 4, 5, 7 11 | b, 2, 3, 5, 8 12 | -------------------------------------------------------------------------------- /Interop/ModelCard/src/test/resources/externalModelPath.xgb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Interop/ModelCard/src/test/resources/externalModelPath.xgb -------------------------------------------------------------------------------- /Interop/ModelCard/src/test/resources/multiClassificationSampleData.svm: -------------------------------------------------------------------------------- 1 | 1,3 1:0.034 2:0.555 3:-0.567 2 | 9,4 1:0.234 2:-0.655 3:-0.67 3 | 1,3 1:0.034 2:0.555 3:-0.567 4 | 9,4 1:0.234 2:-0.655 3:-0.67 5 | 1,3 1:0.034 2:0.555 3:-0.567 6 | 9,4 1:0.234 2:-0.655 3:-0.67 7 | 1,3 1:0.034 2:0.555 3:-0.567 8 | 9,4 1:0.234 2:-0.655 3:-0.67 9 | 1,3 1:0.034 2:0.555 3:-0.567 10 | 9,4 1:0.234 2:-0.655 3:-0.67 -------------------------------------------------------------------------------- /Interop/ModelCard/src/test/resources/regressionSampleData.csv: -------------------------------------------------------------------------------- 1 | response, a, b, c 2 | 1, 9, 3, 2 3 | 3, 3, 4, 5 4 | 2, 5, 6, 8 5 | 3, 2, 1, 1 6 | 2, 5, 6, 7 7 | 0, 1, 9, 1 8 | 2, 5, 6, 8 9 | 3, 2, 1, 1 10 | 1, 9, 3, 2 11 | 3, 3, 4, 5 -------------------------------------------------------------------------------- /Interop/OCI/src/main/java/org/tribuo/interop/oci/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Code for uploading models to Oracle Cloud Infrastructure Data Science, and also for scoring models deployed 19 | * in Oracle Cloud Infrastructure Data Science. 20 | */ 21 | package org.tribuo.interop.oci; -------------------------------------------------------------------------------- /Interop/OCI/src/main/java/org/tribuo/interop/oci/protos/OCILabelConverterProtoOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: tribuo-oci.proto 3 | 4 | // Protobuf Java Version: 3.25.6 5 | package org.tribuo.interop.oci.protos; 6 | 7 | public interface OCILabelConverterProtoOrBuilder extends 8 | // @@protoc_insertion_point(interface_extends:tribuo.interop.oci.OCILabelConverterProto) 9 | com.google.protobuf.MessageOrBuilder { 10 | 11 | /** 12 | * bool generates_probabilities = 1; 13 | * @return The generatesProbabilities. 14 | */ 15 | boolean getGeneratesProbabilities(); 16 | } 17 | -------------------------------------------------------------------------------- /Interop/OCI/src/main/java/org/tribuo/interop/oci/protos/OCIMultiLabelConverterProtoOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: tribuo-oci.proto 3 | 4 | // Protobuf Java Version: 3.25.6 5 | package org.tribuo.interop.oci.protos; 6 | 7 | public interface OCIMultiLabelConverterProtoOrBuilder extends 8 | // @@protoc_insertion_point(interface_extends:tribuo.interop.oci.OCIMultiLabelConverterProto) 9 | com.google.protobuf.MessageOrBuilder { 10 | 11 | /** 12 | * bool generates_probabilities = 1; 13 | * @return The generatesProbabilities. 14 | */ 15 | boolean getGeneratesProbabilities(); 16 | 17 | /** 18 | * double threshold = 2; 19 | * @return The threshold. 20 | */ 21 | double getThreshold(); 22 | } 23 | -------------------------------------------------------------------------------- /Interop/OCI/src/main/resources/LICENSE.txt: -------------------------------------------------------------------------------- 1 | ../../../../../LICENSE.txt -------------------------------------------------------------------------------- /Interop/OCI/src/main/resources/THIRD_PARTY_LICENSES.txt: -------------------------------------------------------------------------------- 1 | ../../../../../THIRD_PARTY_LICENSES.txt -------------------------------------------------------------------------------- /Interop/OCI/src/main/resources/org/tribuo/interop/oci/runtime.yaml: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved. 2 | # This software is available under the Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. 3 | MODEL_ARTIFACT_VERSION: '3.0' 4 | MODEL_DEPLOYMENT: 5 | INFERENCE_CONDA_ENV: 6 | INFERENCE_ENV_SLUG: onnx17_p37_cpu_v1 7 | INFERENCE_ENV_TYPE: data_science 8 | INFERENCE_ENV_PATH: oci://service-conda-packs@id19sfcrra6z/service_pack/cpu/Onnx for CPU Python 3.7/1.0/onnx17_p37_cpu_v1 9 | INFERENCE_PYTHON_VERSION: '3.7' -------------------------------------------------------------------------------- /Interop/OCI/src/test/resources/org/tribuo/interop/oci/iris-lr-model.onnx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Interop/OCI/src/test/resources/org/tribuo/interop/oci/iris-lr-model.onnx -------------------------------------------------------------------------------- /Interop/OCI/src/test/resources/org/tribuo/interop/oci/label-431.tribuo: -------------------------------------------------------------------------------- 1 | (org.tribuo.interop.oci.OCILabelConverterC 2 | =type.googleapis.com/tribuo.interop.oci.OCILabelConverterProto -------------------------------------------------------------------------------- /Interop/OCI/src/test/resources/org/tribuo/interop/oci/multilabel-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Interop/OCI/src/test/resources/org/tribuo/interop/oci/multilabel-431.tribuo -------------------------------------------------------------------------------- /Interop/OCI/src/test/resources/org/tribuo/interop/oci/regressor-431.tribuo: -------------------------------------------------------------------------------- 1 | ,org.tribuo.interop.oci.OCIRegressorConverter -------------------------------------------------------------------------------- /Interop/ONNX/src/main/java/org/tribuo/interop/onnx/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * This package contains a Tribuo wrapper around ONNX Runtime. 19 | *

20 | * ONNX Runtime allows the deployment of models trained in scikit-learn, pytorch and other packages 21 | * without requiring them to be present at runtime. 22 | */ 23 | package org.tribuo.interop.onnx; -------------------------------------------------------------------------------- /Interop/ONNX/src/main/java/org/tribuo/interop/onnx/protos/ImageTransformerProtoOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: tribuo-onnx.proto 3 | 4 | // Protobuf Java Version: 3.25.6 5 | package org.tribuo.interop.onnx.protos; 6 | 7 | public interface ImageTransformerProtoOrBuilder extends 8 | // @@protoc_insertion_point(interface_extends:tribuo.interop.onnx.ImageTransformerProto) 9 | com.google.protobuf.MessageOrBuilder { 10 | 11 | /** 12 | * int32 width = 1; 13 | * @return The width. 14 | */ 15 | int getWidth(); 16 | 17 | /** 18 | * int32 height = 2; 19 | * @return The height. 20 | */ 21 | int getHeight(); 22 | 23 | /** 24 | * int32 channels = 3; 25 | * @return The channels. 26 | */ 27 | int getChannels(); 28 | } 29 | -------------------------------------------------------------------------------- /Interop/ONNX/src/main/java/org/tribuo/interop/onnx/protos/LabelTransformerProtoOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: tribuo-onnx.proto 3 | 4 | // Protobuf Java Version: 3.25.6 5 | package org.tribuo.interop.onnx.protos; 6 | 7 | public interface LabelTransformerProtoOrBuilder extends 8 | // @@protoc_insertion_point(interface_extends:tribuo.interop.onnx.LabelTransformerProto) 9 | com.google.protobuf.MessageOrBuilder { 10 | 11 | /** 12 | * bool generates_probabilities = 1; 13 | * @return The generatesProbabilities. 14 | */ 15 | boolean getGeneratesProbabilities(); 16 | } 17 | -------------------------------------------------------------------------------- /Interop/ONNX/src/main/java/org/tribuo/interop/onnx/protos/MultiLabelTransformerProtoOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: tribuo-onnx.proto 3 | 4 | // Protobuf Java Version: 3.25.6 5 | package org.tribuo.interop.onnx.protos; 6 | 7 | public interface MultiLabelTransformerProtoOrBuilder extends 8 | // @@protoc_insertion_point(interface_extends:tribuo.interop.onnx.MultiLabelTransformerProto) 9 | com.google.protobuf.MessageOrBuilder { 10 | 11 | /** 12 | * bool generates_probabilities = 1; 13 | * @return The generatesProbabilities. 14 | */ 15 | boolean getGeneratesProbabilities(); 16 | 17 | /** 18 | * double threshold = 2; 19 | * @return The threshold. 20 | */ 21 | double getThreshold(); 22 | } 23 | -------------------------------------------------------------------------------- /Interop/ONNX/src/main/resources/LICENSE.txt: -------------------------------------------------------------------------------- 1 | ../../../../../LICENSE.txt -------------------------------------------------------------------------------- /Interop/ONNX/src/main/resources/THIRD_PARTY_LICENSES.txt: -------------------------------------------------------------------------------- 1 | ../../../../../THIRD_PARTY_LICENSES.txt -------------------------------------------------------------------------------- /Interop/ONNX/src/test/resources/org/tribuo/interop/onnx/cnn_mnist.onnx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Interop/ONNX/src/test/resources/org/tribuo/interop/onnx/cnn_mnist.onnx -------------------------------------------------------------------------------- /Interop/ONNX/src/test/resources/org/tribuo/interop/onnx/dense-431.tribuo: -------------------------------------------------------------------------------- 1 | (org.tribuo.interop.onnx.DenseTransformer -------------------------------------------------------------------------------- /Interop/ONNX/src/test/resources/org/tribuo/interop/onnx/extractors/bert-base-cased-tokenizer.json.README: -------------------------------------------------------------------------------- 1 | The bert-base-cased-tokenizer.json file is licensed under Apache 2.0 and copyright Huggingface. 2 | It is from the Huggingface Transformers library and represents a trained Wordpiece tokenizer 3 | which is based on the one released by Google with the original bert-base-cased model. 4 | 5 | More details on the bert-base-cased model and tokenizer are available here - https://huggingface.co/bert-base-cased -------------------------------------------------------------------------------- /Interop/ONNX/src/test/resources/org/tribuo/interop/onnx/extractors/tinybert.onnx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Interop/ONNX/src/test/resources/org/tribuo/interop/onnx/extractors/tinybert.onnx -------------------------------------------------------------------------------- /Interop/ONNX/src/test/resources/org/tribuo/interop/onnx/image-431.tribuo: -------------------------------------------------------------------------------- 1 | (org.tribuo.interop.onnx.ImageTransformerG 2 | =type.googleapis.com/tribuo.interop.onnx.ImageTransformerProto@@ -------------------------------------------------------------------------------- /Interop/ONNX/src/test/resources/org/tribuo/interop/onnx/label-431.tribuo: -------------------------------------------------------------------------------- 1 | (org.tribuo.interop.onnx.LabelTransformerC 2 | =type.googleapis.com/tribuo.interop.onnx.LabelTransformerProto -------------------------------------------------------------------------------- /Interop/ONNX/src/test/resources/org/tribuo/interop/onnx/lovo-431.tribuo: -------------------------------------------------------------------------------- 1 | /org.tribuo.interop.onnx.LabelOneVOneTransformer -------------------------------------------------------------------------------- /Interop/ONNX/src/test/resources/org/tribuo/interop/onnx/lr_mnist.onnx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Interop/ONNX/src/test/resources/org/tribuo/interop/onnx/lr_mnist.onnx -------------------------------------------------------------------------------- /Interop/ONNX/src/test/resources/org/tribuo/interop/onnx/multilabel-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Interop/ONNX/src/test/resources/org/tribuo/interop/onnx/multilabel-431.tribuo -------------------------------------------------------------------------------- /Interop/ONNX/src/test/resources/org/tribuo/interop/onnx/regressor-431.tribuo: -------------------------------------------------------------------------------- 1 | ,org.tribuo.interop.onnx.RegressorTransformer -------------------------------------------------------------------------------- /Interop/Tensorflow/configs/cnn-mnist-v0.3.1.pb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Interop/Tensorflow/configs/cnn-mnist-v0.3.1.pb -------------------------------------------------------------------------------- /Interop/Tensorflow/src/main/java/org/tribuo/interop/tensorflow/example/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Example architectures for use with Tribuo's TF interface. 19 | *

20 | * Also used to provide architectures for the unit tests. 21 | */ 22 | package org.tribuo.interop.tensorflow.example; -------------------------------------------------------------------------------- /Interop/Tensorflow/src/main/java/org/tribuo/interop/tensorflow/protos/DenseFeatureConverterProtoOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: tribuo-tensorflow.proto 3 | 4 | // Protobuf Java Version: 3.25.6 5 | package org.tribuo.interop.tensorflow.protos; 6 | 7 | public interface DenseFeatureConverterProtoOrBuilder extends 8 | // @@protoc_insertion_point(interface_extends:tribuo.interop.tensorflow.DenseFeatureConverterProto) 9 | com.google.protobuf.MessageOrBuilder { 10 | 11 | /** 12 | * string input_name = 1; 13 | * @return The inputName. 14 | */ 15 | java.lang.String getInputName(); 16 | /** 17 | * string input_name = 1; 18 | * @return The bytes for inputName. 19 | */ 20 | com.google.protobuf.ByteString 21 | getInputNameBytes(); 22 | } 23 | -------------------------------------------------------------------------------- /Interop/Tensorflow/src/main/resources/LICENSE.txt: -------------------------------------------------------------------------------- 1 | ../../../../../LICENSE.txt -------------------------------------------------------------------------------- /Interop/Tensorflow/src/main/resources/THIRD_PARTY_LICENSES.txt: -------------------------------------------------------------------------------- 1 | ../../../../../THIRD_PARTY_LICENSES.txt -------------------------------------------------------------------------------- /Interop/Tensorflow/src/test/resources/org/tribuo/interop/tensorflow/dense-431.tribuo: -------------------------------------------------------------------------------- 1 | 3org.tribuo.interop.tensorflow.DenseFeatureConverterQ 2 | Htype.googleapis.com/tribuo.interop.tensorflow.DenseFeatureConverterProto 3 | foo -------------------------------------------------------------------------------- /Interop/Tensorflow/src/test/resources/org/tribuo/interop/tensorflow/image-431.tribuo: -------------------------------------------------------------------------------- 1 | ,org.tribuo.interop.tensorflow.ImageConverterP 2 | Atype.googleapis.com/tribuo.interop.tensorflow.ImageConverterProto 3 | foo@@  -------------------------------------------------------------------------------- /Interop/Tensorflow/src/test/resources/org/tribuo/interop/tensorflow/label-431.tribuo: -------------------------------------------------------------------------------- 1 | ,org.tribuo.interop.tensorflow.LabelConverter -------------------------------------------------------------------------------- /Interop/Tensorflow/src/test/resources/org/tribuo/interop/tensorflow/multilabel-431.tribuo: -------------------------------------------------------------------------------- 1 | 1org.tribuo.interop.tensorflow.MultiLabelConverter -------------------------------------------------------------------------------- /Interop/Tensorflow/src/test/resources/org/tribuo/interop/tensorflow/regressor-431.tribuo: -------------------------------------------------------------------------------- 1 | 0org.tribuo.interop.tensorflow.RegressorConverter -------------------------------------------------------------------------------- /Json/src/main/java/org/tribuo/json/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides interop with JSON formatted data, along with tools for interacting with JSON provenance objects. 19 | */ 20 | package org.tribuo.json; -------------------------------------------------------------------------------- /Json/src/main/resources/LICENSE.txt: -------------------------------------------------------------------------------- 1 | ../../../../LICENSE.txt -------------------------------------------------------------------------------- /Json/src/main/resources/THIRD_PARTY_LICENSES.txt: -------------------------------------------------------------------------------- 1 | ../../../../THIRD_PARTY_LICENSES.txt -------------------------------------------------------------------------------- /Json/src/test/resources/org/tribuo/json/empty.json: -------------------------------------------------------------------------------- 1 | [ ] 2 | 3 | -------------------------------------------------------------------------------- /Math/src/main/java/org/tribuo/math/distance/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * An interface for distance computations between two {@link org.tribuo.math.la.SGDVector} instances 19 | * along with some standard implementations. 20 | */ 21 | package org.tribuo.math.distance; -------------------------------------------------------------------------------- /Math/src/main/java/org/tribuo/math/distributions/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * A package of statistical distributions. 19 | */ 20 | package org.tribuo.math.distributions; -------------------------------------------------------------------------------- /Math/src/main/java/org/tribuo/math/kernel/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides a {@link org.tribuo.math.kernel.Kernel} interface for Mercer kernels, along with implementations of standard kernels. 19 | */ 20 | package org.tribuo.math.kernel; -------------------------------------------------------------------------------- /Math/src/main/java/org/tribuo/math/neighbour/bruteforce/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides a brute-force nearest neighbour query implementation. 19 | */ 20 | package org.tribuo.math.neighbour.bruteforce; -------------------------------------------------------------------------------- /Math/src/main/java/org/tribuo/math/neighbour/kdtree/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides a k-d tree nearest neighbour query implementation. 19 | */ 20 | package org.tribuo.math.neighbour.kdtree; -------------------------------------------------------------------------------- /Math/src/main/java/org/tribuo/math/neighbour/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides nearest neighbour query functionality. 19 | */ 20 | package org.tribuo.math.neighbour; -------------------------------------------------------------------------------- /Math/src/main/java/org/tribuo/math/onnx/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Utilities for converting Tribuo math objects into ONNX representations. 19 | */ 20 | package org.tribuo.math.onnx; -------------------------------------------------------------------------------- /Math/src/main/java/org/tribuo/math/optimisers/util/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides some utility tensors for use in gradient optimisers. 19 | */ 20 | package org.tribuo.math.optimisers.util; -------------------------------------------------------------------------------- /Math/src/main/java/org/tribuo/math/protos/LinearParametersProtoOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: tribuo-math-impl.proto 3 | 4 | // Protobuf Java Version: 3.25.6 5 | package org.tribuo.math.protos; 6 | 7 | public interface LinearParametersProtoOrBuilder extends 8 | // @@protoc_insertion_point(interface_extends:tribuo.math.impl.LinearParametersProto) 9 | com.google.protobuf.MessageOrBuilder { 10 | 11 | /** 12 | * .tribuo.math.TensorProto weightMatrix = 1; 13 | * @return Whether the weightMatrix field is set. 14 | */ 15 | boolean hasWeightMatrix(); 16 | /** 17 | * .tribuo.math.TensorProto weightMatrix = 1; 18 | * @return The weightMatrix. 19 | */ 20 | org.tribuo.math.protos.TensorProto getWeightMatrix(); 21 | /** 22 | * .tribuo.math.TensorProto weightMatrix = 1; 23 | */ 24 | org.tribuo.math.protos.TensorProtoOrBuilder getWeightMatrixOrBuilder(); 25 | } 26 | -------------------------------------------------------------------------------- /Math/src/main/java/org/tribuo/math/protos/PolynomialKernelProtoOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: tribuo-math-impl.proto 3 | 4 | // Protobuf Java Version: 3.25.6 5 | package org.tribuo.math.protos; 6 | 7 | public interface PolynomialKernelProtoOrBuilder extends 8 | // @@protoc_insertion_point(interface_extends:tribuo.math.impl.PolynomialKernelProto) 9 | com.google.protobuf.MessageOrBuilder { 10 | 11 | /** 12 | * double gamma = 1; 13 | * @return The gamma. 14 | */ 15 | double getGamma(); 16 | 17 | /** 18 | * double intercept = 2; 19 | * @return The intercept. 20 | */ 21 | double getIntercept(); 22 | 23 | /** 24 | * double degree = 3; 25 | * @return The degree. 26 | */ 27 | double getDegree(); 28 | } 29 | -------------------------------------------------------------------------------- /Math/src/main/java/org/tribuo/math/protos/RBFKernelProtoOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: tribuo-math-impl.proto 3 | 4 | // Protobuf Java Version: 3.25.6 5 | package org.tribuo.math.protos; 6 | 7 | public interface RBFKernelProtoOrBuilder extends 8 | // @@protoc_insertion_point(interface_extends:tribuo.math.impl.RBFKernelProto) 9 | com.google.protobuf.MessageOrBuilder { 10 | 11 | /** 12 | * double gamma = 1; 13 | * @return The gamma. 14 | */ 15 | double getGamma(); 16 | } 17 | -------------------------------------------------------------------------------- /Math/src/main/java/org/tribuo/math/protos/SigmoidKernelProtoOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: tribuo-math-impl.proto 3 | 4 | // Protobuf Java Version: 3.25.6 5 | package org.tribuo.math.protos; 6 | 7 | public interface SigmoidKernelProtoOrBuilder extends 8 | // @@protoc_insertion_point(interface_extends:tribuo.math.impl.SigmoidKernelProto) 9 | com.google.protobuf.MessageOrBuilder { 10 | 11 | /** 12 | * double gamma = 1; 13 | * @return The gamma. 14 | */ 15 | double getGamma(); 16 | 17 | /** 18 | * double intercept = 2; 19 | * @return The intercept. 20 | */ 21 | double getIntercept(); 22 | } 23 | -------------------------------------------------------------------------------- /Math/src/main/resources/LICENSE.txt: -------------------------------------------------------------------------------- 1 | ../../../../LICENSE.txt -------------------------------------------------------------------------------- /Math/src/main/resources/THIRD_PARTY_LICENSES.txt: -------------------------------------------------------------------------------- 1 | ../../../../THIRD_PARTY_LICENSES.txt -------------------------------------------------------------------------------- /Math/src/test/resources/org/tribuo/math/distance/cosine-distance-431.tribuo: -------------------------------------------------------------------------------- 1 | 'org.tribuo.math.distance.CosineDistance -------------------------------------------------------------------------------- /Math/src/test/resources/org/tribuo/math/distance/l1-distance-431.tribuo: -------------------------------------------------------------------------------- 1 | #org.tribuo.math.distance.L1Distance -------------------------------------------------------------------------------- /Math/src/test/resources/org/tribuo/math/distance/l2-distance-431.tribuo: -------------------------------------------------------------------------------- 1 | #org.tribuo.math.distance.L2Distance -------------------------------------------------------------------------------- /Math/src/test/resources/org/tribuo/math/la/dense-matrix-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Math/src/test/resources/org/tribuo/math/la/dense-matrix-431.tribuo -------------------------------------------------------------------------------- /Math/src/test/resources/org/tribuo/math/la/dense-vector-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Math/src/test/resources/org/tribuo/math/la/dense-vector-431.tribuo -------------------------------------------------------------------------------- /Math/src/test/resources/org/tribuo/math/la/densesparse-matrix-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Math/src/test/resources/org/tribuo/math/la/densesparse-matrix-431.tribuo -------------------------------------------------------------------------------- /Math/src/test/resources/org/tribuo/math/la/sparse-vector-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Math/src/test/resources/org/tribuo/math/la/sparse-vector-431.tribuo -------------------------------------------------------------------------------- /Math/src/test/resources/org/tribuo/math/linear-kernel-431.tribuo: -------------------------------------------------------------------------------- 1 | org.tribuo.math.kernel.Linear -------------------------------------------------------------------------------- /Math/src/test/resources/org/tribuo/math/neighbour/brute-factory-431.tribuo: -------------------------------------------------------------------------------- 1 | @org.tribuo.math.neighbour.bruteforce.NeighboursBruteForceFactoryh 2 | ;type.googleapis.com/tribuo.math.impl.BruteForceFactoryProto)%#org.tribuo.math.distance.L2Distance -------------------------------------------------------------------------------- /Math/src/test/resources/org/tribuo/math/neighbour/kdtree-factory-431.tribuo: -------------------------------------------------------------------------------- 1 | .org.tribuo.math.neighbour.kdtree.KDTreeFactoryd 2 | 7type.googleapis.com/tribuo.math.impl.KDTreeFactoryProto)%#org.tribuo.math.distance.L2Distance -------------------------------------------------------------------------------- /Math/src/test/resources/org/tribuo/math/optimisers/util/shrinking-matrix-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Math/src/test/resources/org/tribuo/math/optimisers/util/shrinking-matrix-431.tribuo -------------------------------------------------------------------------------- /Math/src/test/resources/org/tribuo/math/optimisers/util/shrinking-vector-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Math/src/test/resources/org/tribuo/math/optimisers/util/shrinking-vector-431.tribuo -------------------------------------------------------------------------------- /Math/src/test/resources/org/tribuo/math/poly-kernel-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Math/src/test/resources/org/tribuo/math/poly-kernel-431.tribuo -------------------------------------------------------------------------------- /Math/src/test/resources/org/tribuo/math/rbf-kernel-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Math/src/test/resources/org/tribuo/math/rbf-kernel-431.tribuo -------------------------------------------------------------------------------- /Math/src/test/resources/org/tribuo/math/sigmoid-kernel-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Math/src/test/resources/org/tribuo/math/sigmoid-kernel-431.tribuo -------------------------------------------------------------------------------- /Math/src/test/resources/org/tribuo/math/util/exp-normalizer-431.tribuo: -------------------------------------------------------------------------------- 1 | "org.tribuo.math.util.ExpNormalizer -------------------------------------------------------------------------------- /Math/src/test/resources/org/tribuo/math/util/heap-merger-431.tribuo: -------------------------------------------------------------------------------- 1 | org.tribuo.math.util.HeapMerger -------------------------------------------------------------------------------- /Math/src/test/resources/org/tribuo/math/util/matrix-merger-431.tribuo: -------------------------------------------------------------------------------- 1 | %org.tribuo.math.util.MatrixHeapMerger -------------------------------------------------------------------------------- /Math/src/test/resources/org/tribuo/math/util/noop-normalizer-431.tribuo: -------------------------------------------------------------------------------- 1 | #org.tribuo.math.util.NoopNormalizer -------------------------------------------------------------------------------- /Math/src/test/resources/org/tribuo/math/util/normalizer-431.tribuo: -------------------------------------------------------------------------------- 1 | org.tribuo.math.util.Normalizer -------------------------------------------------------------------------------- /Math/src/test/resources/org/tribuo/math/util/sigmoid-normalizer-431.tribuo: -------------------------------------------------------------------------------- 1 | &org.tribuo.math.util.SigmoidNormalizer -------------------------------------------------------------------------------- /MultiLabel/Core/src/main/java/org/tribuo/multilabel/ensemble/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides a multi-label ensemble combiner that performs a (possibly 19 | * weighted) majority vote among each label independently, along with an 20 | * implementation of classifier chain ensembles. 21 | */ 22 | package org.tribuo.multilabel.ensemble; -------------------------------------------------------------------------------- /MultiLabel/Core/src/main/java/org/tribuo/multilabel/example/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2021, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides a multi-label data generator for testing implementations and a 19 | * configurable data source suitable for demos and tests. 20 | */ 21 | package org.tribuo.multilabel.example; -------------------------------------------------------------------------------- /MultiLabel/Core/src/main/resources/LICENSE.txt: -------------------------------------------------------------------------------- 1 | ../../../../../LICENSE.txt -------------------------------------------------------------------------------- /MultiLabel/Core/src/main/resources/THIRD_PARTY_LICENSES.txt: -------------------------------------------------------------------------------- 1 | ../../../../../THIRD_PARTY_LICENSES.txt -------------------------------------------------------------------------------- /MultiLabel/Core/src/test/resources/org/tribuo/multilabel/baseline/cc-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/MultiLabel/Core/src/test/resources/org/tribuo/multilabel/baseline/cc-431.tribuo -------------------------------------------------------------------------------- /MultiLabel/Core/src/test/resources/org/tribuo/multilabel/baseline/iml-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/MultiLabel/Core/src/test/resources/org/tribuo/multilabel/baseline/iml-431.tribuo -------------------------------------------------------------------------------- /MultiLabel/Core/src/test/resources/org/tribuo/multilabel/combiner-multilabel-431.tribuo: -------------------------------------------------------------------------------- 1 | 7org.tribuo.multilabel.ensemble.MultiLabelVotingCombiner -------------------------------------------------------------------------------- /MultiLabel/Core/src/test/resources/org/tribuo/multilabel/factory-multilabel-431.tribuo: -------------------------------------------------------------------------------- 1 | 'org.tribuo.multilabel.MultiLabelFactory -------------------------------------------------------------------------------- /MultiLabel/Core/src/test/resources/org/tribuo/multilabel/immutableinfo-multilabel-431.tribuo: -------------------------------------------------------------------------------- 1 | -org.tribuo.multilabel.ImmutableMultiLabelInfob 2 | Btype.googleapis.com/tribuo.multilabel.ImmutableMultiLabelInfoProto 3 | A 4 | B 5 | C 6 | ONE( 7 | -------------------------------------------------------------------------------- /MultiLabel/Core/src/test/resources/org/tribuo/multilabel/multilabel-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/MultiLabel/Core/src/test/resources/org/tribuo/multilabel/multilabel-431.tribuo -------------------------------------------------------------------------------- /MultiLabel/Core/src/test/resources/org/tribuo/multilabel/mutableinfo-multilabel-431.tribuo: -------------------------------------------------------------------------------- 1 | +org.tribuo.multilabel.MutableMultiLabelInfo\ 2 | @type.googleapis.com/tribuo.multilabel.MutableMultiLabelInfoProto 3 | A 4 | B 5 | C 6 | ONE 7 | -------------------------------------------------------------------------------- /MultiLabel/SGD/src/main/java/org/tribuo/multilabel/sgd/fm/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides an implementation of a multi-label classification factorization machine model using Stochastic Gradient Descent. 19 | */ 20 | package org.tribuo.multilabel.sgd.fm; -------------------------------------------------------------------------------- /MultiLabel/SGD/src/main/java/org/tribuo/multilabel/sgd/linear/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides an implementation of a multi-label classification linear model using Stochastic Gradient Descent. 19 | */ 20 | package org.tribuo.multilabel.sgd.linear; -------------------------------------------------------------------------------- /MultiLabel/SGD/src/main/java/org/tribuo/multilabel/sgd/objectives/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides multi-label classification loss functions for Stochastic Gradient Descent. 19 | */ 20 | package org.tribuo.multilabel.sgd.objectives; -------------------------------------------------------------------------------- /MultiLabel/SGD/src/main/java/org/tribuo/multilabel/sgd/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides infrastructure for Stochastic Gradient Descent for multi-label classification problems. 19 | */ 20 | package org.tribuo.multilabel.sgd; -------------------------------------------------------------------------------- /MultiLabel/SGD/src/main/resources/LICENSE.txt: -------------------------------------------------------------------------------- 1 | ../../../../../LICENSE.txt -------------------------------------------------------------------------------- /MultiLabel/SGD/src/main/resources/THIRD_PARTY_LICENSES.txt: -------------------------------------------------------------------------------- 1 | ../../../../../THIRD_PARTY_LICENSES.txt -------------------------------------------------------------------------------- /MultiLabel/SGD/src/test/resources/org/tribuo/multilabel/sgd/fm/fm-ml-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/MultiLabel/SGD/src/test/resources/org/tribuo/multilabel/sgd/fm/fm-ml-431.tribuo -------------------------------------------------------------------------------- /MultiLabel/SGD/src/test/resources/org/tribuo/multilabel/sgd/linear/lin-ml-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/MultiLabel/SGD/src/test/resources/org/tribuo/multilabel/sgd/linear/lin-ml-431.tribuo -------------------------------------------------------------------------------- /Regression/Core/src/main/java/org/tribuo/regression/baseline/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides simple baseline regression predictors. 19 | *

20 | * If you can't beat these baselines then your ML system isn't working. 21 | *

22 | */ 23 | package org.tribuo.regression.baseline; -------------------------------------------------------------------------------- /Regression/Core/src/main/java/org/tribuo/regression/ensemble/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides {@link org.tribuo.ensemble.EnsembleCombiner} implementations 19 | * for working with multi-output regression problems. 20 | */ 21 | package org.tribuo.regression.ensemble; -------------------------------------------------------------------------------- /Regression/Core/src/main/java/org/tribuo/regression/example/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides some example regression data generators for testing implementations. 19 | */ 20 | package org.tribuo.regression.example; -------------------------------------------------------------------------------- /Regression/Core/src/main/java/org/tribuo/regression/impl/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides skeletal implementations of {@link org.tribuo.regression.Regressor} 19 | * {@link org.tribuo.Trainer} that can wrap a single 20 | * dimension trainer/model and produce one prediction per dimension independently. 21 | */ 22 | package org.tribuo.regression.impl; -------------------------------------------------------------------------------- /Regression/Core/src/main/java/org/tribuo/regression/protos/DimensionTupleProtoOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: tribuo-regression-core.proto 3 | 4 | // Protobuf Java Version: 3.25.6 5 | package org.tribuo.regression.protos; 6 | 7 | public interface DimensionTupleProtoOrBuilder extends 8 | // @@protoc_insertion_point(interface_extends:tribuo.regression.DimensionTupleProto) 9 | com.google.protobuf.MessageOrBuilder { 10 | 11 | /** 12 | * string name = 1; 13 | * @return The name. 14 | */ 15 | java.lang.String getName(); 16 | /** 17 | * string name = 1; 18 | * @return The bytes for name. 19 | */ 20 | com.google.protobuf.ByteString 21 | getNameBytes(); 22 | 23 | /** 24 | * double value = 2; 25 | * @return The value. 26 | */ 27 | double getValue(); 28 | 29 | /** 30 | * double variance = 3; 31 | * @return The variance. 32 | */ 33 | double getVariance(); 34 | } 35 | -------------------------------------------------------------------------------- /Regression/Core/src/main/java/org/tribuo/regression/protos/RegressionFactoryProtoOrBuilder.java: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: tribuo-regression-core.proto 3 | 4 | // Protobuf Java Version: 3.25.6 5 | package org.tribuo.regression.protos; 6 | 7 | public interface RegressionFactoryProtoOrBuilder extends 8 | // @@protoc_insertion_point(interface_extends:tribuo.regression.RegressionFactoryProto) 9 | com.google.protobuf.MessageOrBuilder { 10 | 11 | /** 12 | * string splitChar = 1; 13 | * @return The splitChar. 14 | */ 15 | java.lang.String getSplitChar(); 16 | /** 17 | * string splitChar = 1; 18 | * @return The bytes for splitChar. 19 | */ 20 | com.google.protobuf.ByteString 21 | getSplitCharBytes(); 22 | } 23 | -------------------------------------------------------------------------------- /Regression/Core/src/main/resources/LICENSE.txt: -------------------------------------------------------------------------------- 1 | ../../../../../LICENSE.txt -------------------------------------------------------------------------------- /Regression/Core/src/main/resources/THIRD_PARTY_LICENSES.txt: -------------------------------------------------------------------------------- 1 | ../../../../../THIRD_PARTY_LICENSES.txt -------------------------------------------------------------------------------- /Regression/Core/src/test/resources/org/tribuo/regression/baseline/dummyreg-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Regression/Core/src/test/resources/org/tribuo/regression/baseline/dummyreg-431.tribuo -------------------------------------------------------------------------------- /Regression/Core/src/test/resources/org/tribuo/regression/combiner-regression-431.tribuo: -------------------------------------------------------------------------------- 1 | 0org.tribuo.regression.ensemble.AveragingCombiner -------------------------------------------------------------------------------- /Regression/Core/src/test/resources/org/tribuo/regression/dimension-431.tribuo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/Regression/Core/src/test/resources/org/tribuo/regression/dimension-431.tribuo -------------------------------------------------------------------------------- /Regression/Core/src/test/resources/org/tribuo/regression/factory-regression-431.tribuo: -------------------------------------------------------------------------------- 1 | 'org.tribuo.regression.RegressionFactoryC 2 | 20 | * Note the API for this package is still under development and may change in a minor release. 21 | */ 22 | package org.tribuo.reproducibility; -------------------------------------------------------------------------------- /Util/InformationTheory/src/main/java/org/tribuo/util/infotheory/example/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * This package provides demos for the information theoretic function 19 | * classes in {@link org.tribuo.util.infotheory}. 20 | */ 21 | package org.tribuo.util.infotheory.example; -------------------------------------------------------------------------------- /Util/InformationTheory/src/main/java/org/tribuo/util/infotheory/impl/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * This package provides the implementations and helper classes for the 19 | * information theoretic functions in {@link org.tribuo.util.infotheory}. 20 | */ 21 | package org.tribuo.util.infotheory.impl; -------------------------------------------------------------------------------- /Util/InformationTheory/src/main/java/org/tribuo/util/infotheory/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * This package provides static classes of information theoretic functions. 19 | */ 20 | package org.tribuo.util.infotheory; -------------------------------------------------------------------------------- /Util/InformationTheory/src/main/resources/LICENSE.txt: -------------------------------------------------------------------------------- 1 | ../../../../../LICENSE.txt -------------------------------------------------------------------------------- /Util/InformationTheory/src/main/resources/THIRD_PARTY_LICENSES.txt: -------------------------------------------------------------------------------- 1 | ../../../../../THIRD_PARTY_LICENSES.txt -------------------------------------------------------------------------------- /Util/ONNXExport/src/main/java/ai/onnx/proto/NOTICE.md: -------------------------------------------------------------------------------- 1 | # OnnxMl.java 2 | 3 | This file was compiled from the onnx-ml.proto file in ONNX v1.17.0 using protoc 3.25.5. 4 | 5 | The proto file was compiled with: 6 | ```protobuf 7 | option java_package="ai.onnx.proto"; 8 | ``` 9 | and the protoc command was: 10 | ```shell 11 | protoc --proto_path=../onnx/onnx --java_out=Util/ONNXExport/src/main/java/ ../onnx/onnx/onnx-ml.proto 12 | ``` 13 | executed from the root of the Tribuo repo, and assuming onnx is checked out in a sibling directory. 14 | 15 | The onnx-ml.proto file is part of the ONNX project and licensed under Apache 2.0. -------------------------------------------------------------------------------- /Util/ONNXExport/src/main/resources/LICENSE.txt: -------------------------------------------------------------------------------- 1 | ../../../../../LICENSE.txt -------------------------------------------------------------------------------- /Util/ONNXExport/src/main/resources/THIRD_PARTY_LICENSES.txt: -------------------------------------------------------------------------------- 1 | ../../../../../THIRD_PARTY_LICENSES.txt -------------------------------------------------------------------------------- /Util/Tokenization/src/main/java/org/tribuo/util/tokens/impl/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Simple fixed rule tokenizers. 19 | */ 20 | package org.tribuo.util.tokens.impl; -------------------------------------------------------------------------------- /Util/Tokenization/src/main/java/org/tribuo/util/tokens/impl/wordpiece/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Provides an implementation of a Wordpiece tokenizer which implements 19 | * to the Tribuo {@link org.tribuo.util.tokens.Tokenizer} API. 20 | */ 21 | package org.tribuo.util.tokens.impl.wordpiece; -------------------------------------------------------------------------------- /Util/Tokenization/src/main/java/org/tribuo/util/tokens/options/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * OLCUT {@link com.oracle.labs.mlrg.olcut.config.Options} implementations 19 | * which can construct {@link org.tribuo.util.tokens.Tokenizer}s of various types. 20 | */ 21 | package org.tribuo.util.tokens.options; -------------------------------------------------------------------------------- /Util/Tokenization/src/main/java/org/tribuo/util/tokens/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * Core definitions for tokenization. Tokens are represented by instances of 19 | * {@link org.tribuo.util.tokens.Token}, and emitted by implementations of 20 | * {@link org.tribuo.util.tokens.Tokenizer}. 21 | */ 22 | package org.tribuo.util.tokens; -------------------------------------------------------------------------------- /Util/Tokenization/src/main/resources/LICENSE.txt: -------------------------------------------------------------------------------- 1 | ../../../../../LICENSE.txt -------------------------------------------------------------------------------- /Util/Tokenization/src/main/resources/THIRD_PARTY_LICENSES.txt: -------------------------------------------------------------------------------- 1 | ../../../../../THIRD_PARTY_LICENSES.txt -------------------------------------------------------------------------------- /Util/Tokenization/src/main/resources/org/tribuo/util/tokens/stop/en.stop.readme: -------------------------------------------------------------------------------- 1 | en.stop was provided with the following header: 2 | 3 | # Freely available stopword list generated by 4 | # Chris Buckley and Gerard Salton at Cornell University. 5 | # 6 | # 7 | # 8 | # 9 | # 10 | -------------------------------------------------------------------------------- /Util/Tokenization/src/test/resources/co/huggingface/bert-base-uncased.txt-README: -------------------------------------------------------------------------------- 1 | The file bert-base-uncased.txt was obtained from here: 2 | 3 | https://huggingface.co/bert-base-uncased/resolve/main/vocab.txt 4 | 5 | It is a copy of the one Google released with BERT under Apache 2.0 which was generated from Wiki + book corpus. 6 | 7 | It is available via apache-2.0 8 | 9 | You can read more about this file here: 10 | 11 | https://huggingface.co/bert-base-uncased/resolve/main/README.md 12 | 13 | https://huggingface.co/bert-base-uncased 14 | 15 | -------------------------------------------------------------------------------- /Util/Tokenization/src/test/resources/org/tribuo/util/tokens/impl/test/regression-data-sample.txt: -------------------------------------------------------------------------------- 1 | test test 2 | partyg party ##g 3 | whitecastleburgers white ##castle ##burg ##ers 4 | hello world! hello world ##! 5 | prince humperdink prince hum ##per ##din ##k 6 | prince४०८ [UNK] 7 | the ४०८ the [UNK] 8 | the the 9 | -------------------------------------------------------------------------------- /docs/img/Tribuo_Logo_Colour.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/docs/img/Tribuo_Logo_Colour.png -------------------------------------------------------------------------------- /docs/img/tribuo-data-flow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/docs/img/tribuo-data-flow.png -------------------------------------------------------------------------------- /docs/img/tribuo-github-social.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/docs/img/tribuo-github-social.png -------------------------------------------------------------------------------- /docs/jep-290-filter.txt: -------------------------------------------------------------------------------- 1 | org.tribuo.**;com.oracle.labs.mlrg.olcut.util.*;com.oracle.labs.mlrg.olcut.provenance.**;com.oracle.labs.mlrg.olcut.config.*;libsvm.svm_model;libsvm.svm_parameter;libsvm.svm_node;de.bwaldvogel.liblinear.Model;de.bwaldvogel.liblinear.SolverType;java.util.**;java.io.File;java.nio.file.Path;java.net.URL;java.time.*;java.lang.*;!* 2 | -------------------------------------------------------------------------------- /docs/release-notes/tribuo-v4-0-1-release-notes.md: -------------------------------------------------------------------------------- 1 | # Tribuo v4.0.1 Release Notes 2 | 3 | This release fixes a few issues we found in the tutorials just before launch. 4 | 5 | The IDXDataSource was added as an alternative way to load MNIST as the LibSVM 6 | website (which the tutorial was originally based on) was intermittently down 7 | during our pre-launch period. 8 | 9 | - Fixes an issue where the CSVReader wouldn't read files with extraneous newlines at the end. 10 | - Adds an IDXDataSource so we can read [IDX](http://yann.lecun.com/exdb/mnist/) (i.e. MNIST) formatted datasets. 11 | - Updated the configuration tutorial to read MNIST from IDX files rather than libsvm files. 12 | -------------------------------------------------------------------------------- /docs/talks/JavaOne-2022/mnist-3.0.1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/docs/talks/JavaOne-2022/mnist-3.0.1.png -------------------------------------------------------------------------------- /docs/talks/JavaOne-2022/tribuo-javaone-2022.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/docs/talks/JavaOne-2022/tribuo-javaone-2022.pdf -------------------------------------------------------------------------------- /tests/src/main/java/org/tribuo/tests/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2020, Oracle and/or its affiliates. All rights reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /** 18 | * This package provides helper classes for Tribuo's unit tests. 19 | */ 20 | package org.tribuo.tests; -------------------------------------------------------------------------------- /tests/src/main/resources/LICENSE.txt: -------------------------------------------------------------------------------- 1 | ../../../../LICENSE.txt -------------------------------------------------------------------------------- /tests/src/main/resources/THIRD_PARTY_LICENSES.txt: -------------------------------------------------------------------------------- 1 | ../../../../THIRD_PARTY_LICENSES.txt -------------------------------------------------------------------------------- /tests/src/test/resources/org/tribuo/tests/csv/multilabel.csv: -------------------------------------------------------------------------------- 1 | A,B,C,D,R1,R2 2 | 1,2,3,4,TRUE,FALSE 3 | 6,7,8,9,TRUE,TRUE 4 | 6,7,8,9,FALSE,FALSE 5 | 2,5,3,4,TRUE,FALSE 6 | 1,2,5,9,FALSE,TRUE 7 | -------------------------------------------------------------------------------- /tests/src/test/resources/org/tribuo/tests/csv/multioutput-regression-noheader.csv: -------------------------------------------------------------------------------- 1 | 1,2,3,4,0.1,0.2 2 | 6,7,8,9,0.0,0.0 3 | 6,7,8,9,1.0,1.0 4 | 2,5,3,4,0.0,0.1 5 | 1,2,5,9,10.0,-0.1 -------------------------------------------------------------------------------- /tests/src/test/resources/org/tribuo/tests/csv/multioutput-regression.csv: -------------------------------------------------------------------------------- 1 | A,B,C,D,R1,R2 2 | 1,2,3,4,0.1,0.2 3 | 6,7,8,9,0.0,0.0 4 | 6,7,8,9,1.0,1.0 5 | 2,5,3,4,0.0,0.1 6 | 1,2,5,9,10.0,-0.1 -------------------------------------------------------------------------------- /tutorials/external-models/pytorch_cnn_mnist.onnx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/tutorials/external-models/pytorch_cnn_mnist.onnx -------------------------------------------------------------------------------- /tutorials/external-models/skl_lr_mnist.onnx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/tutorials/external-models/skl_lr_mnist.onnx -------------------------------------------------------------------------------- /tutorials/external-models/xgb_mnist.xgb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oracle/tribuo/64d7ec12d5094ee6a327de691a21451d07bc3bb5/tutorials/external-models/xgb_mnist.xgb -------------------------------------------------------------------------------- /tutorials/simple-2d-data/simple-2d-data-predict.csv: -------------------------------------------------------------------------------- 1 | Feature1,Feature2 2 | 4.25,1.5 3 | 3.9,4.5 4 | 1.5,3 -------------------------------------------------------------------------------- /tutorials/simple-2d-data/simple-2d-data-train.csv: -------------------------------------------------------------------------------- 1 | Feature1,Feature2 2 | 0.75,0.77 3 | 0.76,1 4 | 0.85,1.45 5 | 1,0.75 6 | 1.05,1 7 | 1.07,1.25 8 | 1.2,2.05 9 | 1.25,0.95 10 | 1.27,1.25 11 | 1.3,4.31 12 | 1.4,1.11 13 | 2.2,1.23 14 | 2.27,2.85 15 | 2.4,4.6 16 | 2.5,3.1 17 | 2.55,2.6 18 | 2.6,2.9 19 | 2.7,2.7 20 | 2.78,3 21 | 2.8,2.5 22 | 3,3 23 | 3.05,3.08 24 | 3.05,3.2 25 | 3.1,2.85 26 | 3.15,2.5 27 | 3.2,3.25 28 | 3.25,3.1 29 | 3.65,5.05 30 | 3.8,0.8 31 | 4.1,2.87 32 | 4.77,4.75 33 | 4.74,5.05 34 | 4.8,1.9 35 | 4.95,4.73 36 | 4.95,5.25 37 | 5.01,5.03 38 | 5.05,3.12 39 | 5.23,5.02 40 | 5.21,5.28 --------------------------------------------------------------------------------