Changeset 1211141
- Timestamp:
- 08/01/2015 10:50:56 PM (11 years ago)
- Location:
- aimojo/trunk
- Files:
-
- 2 edited
-
affinitomics.php (modified) (4 diffs)
-
readme.txt (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
aimojo/trunk/affinitomics.php
r1211126 r1211141 4 4 Plugin URI: http://prefrent.com 5 5 Description: Apply Affinitomic Descriptors, Draws, and Distance to Posts and Pages. Shortcode to display Affinitomic relationships. Google CSE with Affinitomics. 6 Version: 1. 0.26 Version: 1.1 7 7 Author: Prefrent 8 8 Author URI: http://prefrent.com … … 55 55 * Attached to activate_{ plugin_basename( __FILES__ ) } by register_activation_hook() 56 56 */ 57 function plugin_activation() 57 function plugin_activation() 58 58 { 59 59 $message = ''; 60 if ( version_compare( $GLOBALS['wp_version'], AI_MOJO__MINIMUM_WP_VERSION, '<' ) ) 60 if ( version_compare( $GLOBALS['wp_version'], AI_MOJO__MINIMUM_WP_VERSION, '<' ) ) 61 61 { 62 62 load_plugin_textdomain( 'aimojo' ); 63 63 64 64 $message = sprintf(esc_html__( 'aimojo %s requires WordPress %s or higher.' , 'aimojo'), AI_MOJO__VERSION, AI_MOJO__MINIMUM_WP_VERSION ).sprintf(__('Please upgrade WordPress to a current version.', 'aimojo'), 'https://codex.wordpress.org/Upgrading_WordPress', 'http://wordpress.org/extend/plugins/aimojo/download/'); 65 65 66 66 } 67 else 67 else 68 68 { 69 af_check_for_errors(); 69 af_check_for_errors(); 70 70 71 71 $af_errors = get_option('af_errors', ''); … … 88 88 } 89 89 90 function plugin_deactivation( ) 90 function plugin_deactivation( ) 91 91 { 92 //TODO: 92 //TODO: 93 93 } 94 94 … … 202 202 if (!isset($af_cloud_url) || $af_cloud_url == "") 203 203 { 204 $af_cloud_url = 'www.affinitomics.com'; 204 $af_cloud_url = 'www.affinitomics.com'; 205 205 update_option( 'af_cloud_url' , $af_cloud_url ); 206 206 } -
aimojo/trunk/readme.txt
r1211126 r1211141 3 3 Donate link: http://prefrent.com/ 4 4 Tags: match, sort, rank, related, related posts, relational, relate, tags, posts, post-types, types, ai, a.i., artificial intelligence, filter, filtering, micro format, context, contextual, contextually, search, data, freeform, construct, descriptors, draws, distance, support-vector, parse, discover, classifier, affinitomics, ai mojo, cognitive, decision support, big data, cookies 5 6 5 Requires at least: 3.6 7 Tested up to: 4. 1.18 Stable tag: 1. 0.06 Tested up to: 4.2.3 7 Stable tag: 1.1 9 8 License: GPLv2 10 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 11 10 12 Aimojo™ - Match, Rank, Relate anything! 11 Aimojo™ - Match, Rank, Relate anything! 13 12 **Replaces Affinitomics for Wordpress** 14 13 … … 39 38 1. Install the plugin 40 39 1. In the admin panel, find the “Affinitomics” menu (usually below Posts) and select “settings” 41 1. Make sure that there is an API key present in the field. If the field is empty, or no key is recognized, register the plugin and claim your key via http://affinitomics.com/register 40 1. Make sure that there is an API key present in the field. If the field is empty, or no key is recognized, register the plugin and claim your key via http://affinitomics.com/register 42 41 1. From the resulting page, copy the API key and paste it in the API field in your settings. 43 42 1. Next, under “To which Post-types would you like to apply your Affinitomics™?” check the boxes for the post-types you want to use with Affinitomics. … … 54 53 1. For your Google Custom Search Engine (CSE) ID follow the instructions here [https://developers.google.com/custom-search/](https://developers.google.com/custom-search/) 55 54 56 = NOTE: Existing pages and posts (rather, the Affinitomics placed on them) must be exported to the Affinitomics cloud before any of them will work. = 55 = NOTE: Existing pages and posts (rather, the Affinitomics placed on them) must be exported to the Affinitomics cloud before any of them will work. = 57 56 1. Under the Affinitomics menu choose “Cloud Export.” 58 57 2. Check “Make it so” and wait for a bit. It won’t take too long, but we haven’t bothered to give you a spinner yet, sorry. You’ll see an output list when it’s done. … … 61 60 = Configure individual Posts, Pages, or Archetypes™ = 62 61 63 1. For existing pages or posts, either copy or move tags to the “Descriptors” field in the page or post editor. 62 1. For existing pages or posts, either copy or move tags to the “Descriptors” field in the page or post editor. 64 63 1. If you want like objects to attract like objects in your system, copy the tags to both “Descriptors” and “Draw”. 65 64 1. It is a best practice (not a requirement) to include a Descriptor of Person, Place, Thing, Concept or Construct in the Descriptors, especially if the Affinitomics are to be exported later, and shared. … … 68 67 1. If none of the Affinitomic™ Element fields are filled in, the page, post, or Archetype will not be effected by Affinitomics™ - JumpSearch will have no effect, and only shortcodes with overriding Affinitomics™ will function. 69 68 69 = Connect your similar pages with Affinitomics™! = 70 71 1. On a page that you would like to add a list of similar posts or pages, simply add the shortcode [afview] 72 1. an [afview] can be modified with the following options: 73 74 limit: how many results to return 75 76 category_filter: only display results from one category (a post can be in multiple categories, this restricts similar results to a single category) 77 78 display_title: just like it sounds, you can hide the title by setting this to "false" 79 80 Examples: [afview], [afview limit="4"], [afview category_filter="50"] 81 82 To use more than one option at a time, just separate options with a space. 83 84 [afview limit=1 display_title="false"] 70 85 =Use the following class' to style [afview] display= 71 86 * afview … … 85 100 86 101 Users are granted space for 1000 Affinitomic™ constructs and 5,000 transactions per month. 87 Larger accounts are available at [Prefrent.com](http://prefrent.com). 102 Larger accounts are available at [Prefrent.com](http://prefrent.com). 88 103 89 104 = How many “Archetypes” will I need? = … … 134 149 It’s easy to derive Affinitomics from these tags. “dog, big, k9, furry” are all easily recognizable as Descriptors. The Draws are easy to recognize as well, and we can take a shortcut in writing them that will differentiate them from Descriptors. They become: +eating, +kids, +snow. We also take a shortcut on what are easy to spot as Distances, and they become: -cars, -cats. By separating the tags into three types of Affinitomics, not only have they become more useful for the computer system, they are actually easier to write and take up less space. 135 150 136 Traditional Tags look like this: 151 Traditional Tags look like this: 137 152 = dog, big, k9, furry, eats a lot, good with kids, likes snow, chases cars, chases cats = 138 153 139 Whereas the features in an Affinitomic Archetype look like this: 154 Whereas the features in an Affinitomic Archetype look like this: 140 155 = dog, big, k9, furry, +eating, +kids, +snow, -cars, -cats = 141 156 142 So now you know how to write Affinitomics, you can see that it takes much less time than writing tags, and by categorizing tags into Descriptors, Draws and Distances, you’ve made the computer much happier. 157 So now you know how to write Affinitomics, you can see that it takes much less time than writing tags, and by categorizing tags into Descriptors, Draws and Distances, you’ve made the computer much happier. 143 158 144 159 = It’s like sorting laundry – it takes the same amount of time and results come out in the wash. With these Affinitomics instead of tags, algorithms can much more quickly determine matches, affinities, and sort values. = … … 146 161 = Extra Credit = 147 162 148 Affinitomics are even more valuable with attenuation – telling the system how much to value Draws and Distances. For example: How much does the dog like to eat? Or which does it hate more; cars or cats? The attenuated Affinitomics for the St. Bernard answer those questions like this: 163 Affinitomics are even more valuable with attenuation – telling the system how much to value Draws and Distances. For example: How much does the dog like to eat? Or which does it hate more; cars or cats? The attenuated Affinitomics for the St. Bernard answer those questions like this: 149 164 = dog, big, k9, furry, +eating2, +kids, +snow4, -cars2, -cats5 = 150 165 151 You’ll notice that it’s still less data than the tags, even though the Affinitomics now represent a three dimensional feature space which is far more valuable for knowledge retrieval, discovery, and machine learning. Because of this, Affinitomics can be evaluated, sorted, and grouped much faster and more accurately than tags. In addition, since the Affinitomics essentially make the information self-ranking and self-sorting, systems that use Affinitomics don’t require categories. 166 You’ll notice that it’s still less data than the tags, even though the Affinitomics now represent a three dimensional feature space which is far more valuable for knowledge retrieval, discovery, and machine learning. Because of this, Affinitomics can be evaluated, sorted, and grouped much faster and more accurately than tags. In addition, since the Affinitomics essentially make the information self-ranking and self-sorting, systems that use Affinitomics don’t require categories. 152 167 153 168 There you have it. You now know how to create Affinitomic Archetypes – a fancy way of saying that you understand how and why you should sort your laundry, errr, tags.
Note: See TracChangeset
for help on using the changeset viewer.