-
Notifications
You must be signed in to change notification settings - Fork 182
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
Conversation
c6c3eec
to
4e89a27
Compare
Approved |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
@@ -1,6 +1,6 @@ | |||
[id='dmn-con_{context}'] | |||
= Decision model and notation | |||
= Decision Model and Notation (DMN) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you define in the title, I don't think you should define here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It together with redundant?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think 'would be' should be 'are'. If you have a good argument why should be is correct, I'd like to hear it :-).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just double-check that Extensions should be capped.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'tis. Thanks.
... | ||
} | ||
---- | ||
<1> Used when the model type is `MiningModel`. The `segmentationId` is used to differentiate between multiple segmentations. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are correct! Oops. Thanks!
... | ||
} | ||
---- | ||
<1> Note that the class is parameterized so that it can handle many different types |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This item needs a period, right? And if I am correct in my previous comment, so do the rest of the items.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'does not get persisted'? Is this OK? Is not persisted?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
soft line break.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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!
39b9bf9
to
77c5d3d
Compare
Jenkins retest this please |
ok to test |
c5dd6de
to
41fc11f
Compare
ok to test |
9c360bc
to
f84386e
Compare
Ready for upstream master.
See JIRA for details.