Skip to content

BXMSODC-2980-master: PMML doc for DM/PAM 7.1 #1103

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 25, 2018

Conversation

sterobin
Copy link
Contributor

@sterobin sterobin commented Sep 21, 2018

Ready for upstream master.

See JIRA for details.

@sterobin sterobin changed the title BXMSODC-2980-master: Created PMML doc for DM/PAM 7.1 WIP: BXMSODC-2980-master: Created PMML doc for DM/PAM 7.1 Sep 21, 2018
@sterobin sterobin changed the title WIP: BXMSODC-2980-master: Created PMML doc for DM/PAM 7.1 WIP: BXMSODC-2980-master: PMML doc for DM/PAM 7.1 Sep 21, 2018
@sterobin sterobin requested a review from baldimir September 22, 2018 00:49
@lanceleverich
Copy link
Contributor

Approved

Copy link
Contributor

@lanceleverich lanceleverich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@@ -1,6 +1,6 @@
[id='dmn-con_{context}']
= Decision model and notation
= Decision Model and Notation (DMN)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, I think we've discussed this before. I don't define acronyms or initialisms in headings or titles. I think it's in the IBM SG but I can't find it off hand. I think Ingrid found once. I assume you are doing it here because DMN is more widely understood than the spelled out version?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IBM SG p. 7. Can use either just the full, the full plus abb in parens, or just the abb so long is it is spelled out in first mention in the text that follows. Also states that on first mention, optimal to provide both the full and abb form, as I've done here. The notion of first mention is quite hazy in mod docs, as we've discussed, so what I do is do this treatment in high-level concepts but not in low-level cons, procs, or refs.


Decision Model and Notation (DMN) is a standard established by the Object Management Group (OMG) for describing and modeling operational decisions. DMN decision models can be shared between platforms and across organizations so that business analysts and business rules developers are unified in designing and implementing DMN decision services. The DMN standard is similar to and can be used together with the Business Process Model and Notation (BPMN) standard for designing and modeling business processes.
Decision Model and Notation (DMN) is a standard established by the Object Management Group (OMG) for describing and modeling operational decisions. DMN decision models can be shared between DMN-compliant platforms and across organizations so that business analysts and business rules developers are unified in designing and implementing DMN decision services. The DMN standard is similar to and can be used together with the Business Process Model and Notation (BPMN) standard for designing and modeling business processes.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you define in the title, I don't think you should define here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, but I just prefer to.


Decision Model and Notation (DMN) is a standard established by the Object Management Group (OMG) for describing and modeling operational decisions. DMN decision models can be shared between platforms and across organizations so that business analysts and business rules developers are unified in designing and implementing DMN decision services. The DMN standard is similar to and can be used together with the Business Process Model and Notation (BPMN) standard for designing and modeling business processes.
Decision Model and Notation (DMN) is a standard established by the Object Management Group (OMG) for describing and modeling operational decisions. DMN decision models can be shared between DMN-compliant platforms and across organizations so that business analysts and business rules developers are unified in designing and implementing DMN decision services. The DMN standard is similar to and can be used together with the Business Process Model and Notation (BPMN) standard for designing and modeling business processes.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It together with redundant?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great point! They do both mean the same thing but feels like "together with" just emphasizes the co-operation of the two. I'll think on it.

The PMML specification allows for http://dmg.org/pmml/v4-2-1/GeneralStructure.html#xsdElement_Extension[Extension] elements at almost every level of the model definition.
In order to facilitate some functionality, {context} has a few pre-defined extensions.
Consumer conformance::
An application is consumer conforming if it accepts valid PMML documents for at least one type of model. Satisfying consumer conformance requirements ensures that a PMML model created according to producer conformance can be integrated and used as defined. For example, if an application is consumer conforming for Regression model types, then valid PMML documents defining models of this type produced by different conforming producers would be interchangeable in the application.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think 'would be' should be 'are'. If you have a good argument why should be is correct, I'd like to hear it :-).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You and I have discussed this before. You are 100% correct that per IBM and common tech writing practice, we should avoid too much conditional info (would, should, could). Hypothetical examples become hazy because syntactically, it should be "would", for the same reason why subjunctive is used with hypotheticals (if I were you vs. if I was you). So it needs to be one of those deliberate breaking of the "rule" for the sake of optimal global English considerations for a mass audience. But one needs to know the rules to effectively break them :)

The key test is if replacing the "correct" conditional usage (would be) with the "incorrect" but clearer indicative usage (are) is in fact better or at least isn't worse. I think in this case it does read funny, to me, with "are".

[id='pmml-extensions-ref_{context}']
= PMML extensions in {PRODUCT}

The PMML specification supports `Extension` elements that extend the content of a PMML model. You can use extensions at almost every level of a PMML model definition, and as the first and last child in the main element of a model for maximum flexibility. For more information about PMML extensions, see the DMG PMML http://dmg.org/pmml/v4-2-1/GeneralStructure.html#xsdElement_Extension[Extension Mechanism].
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just double-check that Extensions should be capped.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'tis. Thanks.

...
}
----
<1> Used when the model type is `MiningModel`. The `segmentationId` is used to differentiate between multiple segmentations.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So my understanding of punctuation with lists is that if any list item contains a complete sentence than every list item gets a period. Am I wrong?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are correct! Oops. Thanks!

...
}
----
<1> Note that the class is parameterized so that it can handle many different types
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This item needs a period, right? And if I am correct in my previous comment, so do the rest of the items.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep! Reworded to make incomplete for consistency.

}
----

NOTE: In this example, the `calculatePossiblePackageNames` method and the `getStartingRuleUnit` method are assumed to belong to the same class as the `executeModel` method.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[NOTE]? Search this PF for other instances.

public static PMML4ExecutionHelper getExecutionHelper(String modelName, Resource resource, KieBaseConfiguration kieBaseConf, boolean includeMiningDataSources)
----

NOTE: The classpath, byte array, and resource `PMML4ExecutionHelperFactory` methods create a KIE container for the generated rules and Java classes. The container is used as the source of the KIE base that the `RuleUnitExecutor` uses. The container does not get persisted. The `PMML4ExecutionHelperFactory` method for PMML assets that are already in a KIE base does not create a KIE container in this way.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'does not get persisted'? Is this OK? Is not persisted?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, much better.

{PRODUCT} does not include a built-in PMML model editor, but you can use an XML or PMML-specific authoring tool to create PMML models and then integrate the PMML models in your decision services in {PRODUCT}. You can import PMML files into your project in {CENTRAL} (*Menu -> Design -> Projects -> Import Asset*) or package the PMML files as part of your project knowledge JAR (KJAR) file without {CENTRAL}.

When you add a PMML file to a project in {PRODUCT}, multiple assets are generated. Each type of PMML model generates a different set of
assets, but all PMML model types generate at least the following set of assets:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

soft line break.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. These are common in single-sourced content that is created first by devs because they use IntelliJ as their text editor and the content gets formatted with a lot of soft breaks in Atom. I can usually address 99% of them, but a couple always slip through. Annoying!

@sterobin sterobin changed the title WIP: BXMSODC-2980-master: PMML doc for DM/PAM 7.1 BXMSODC-2980-master: PMML doc for DM/PAM 7.1 Sep 24, 2018
@sterobin sterobin removed the request for review from baldimir September 24, 2018 18:07
@sterobin
Copy link
Contributor Author

Jenkins retest this please

@sterobin
Copy link
Contributor Author

ok to test

@sterobin sterobin requested a review from baldimir September 25, 2018 01:30
@sterobin sterobin changed the title BXMSODC-2980-master: PMML doc for DM/PAM 7.1 WIP: BXMSODC-2980-master: PMML doc for DM/PAM 7.1 Sep 25, 2018
@sterobin
Copy link
Contributor Author

ok to test

@sterobin sterobin changed the title WIP: BXMSODC-2980-master: PMML doc for DM/PAM 7.1 BXMSODC-2980-master: PMML doc for DM/PAM 7.1 Sep 25, 2018
@sterobin sterobin merged commit afe4699 into apache:master Sep 25, 2018
@sterobin sterobin deleted the BXMSDOC-2980-master branch November 12, 2019 17:34
tkobayas pushed a commit to tkobayas/kie-docs that referenced this pull request May 7, 2025
tkobayas pushed a commit to tkobayas/kie-docs that referenced this pull request May 8, 2025
tkobayas pushed a commit to tkobayas/kie-docs that referenced this pull request May 8, 2025
tkobayas pushed a commit to tkobayas/kie-docs that referenced this pull request May 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants