Custom Sharepoint Lookup Field

MuleSoft企业级AI编排:构建可控、可审计、可治理的LLM集成架构 AI Orchestration(AI编排)是企业将大语言模型(LLMs)深度融入核心业务系统的关键范式,其本质不是简单调用API,而是通过确定性中间件实现意图解析、安全管控与结果标准化。它融合API-led connectivity理念,依托服务总线的治理能力,解决LLM固有的不可预测性、不可审计性与数据风险问题。技术价值在于将黑盒生成式AI转化为符合SOA原则的受控企业服务,支撑合规合同审核、智能客服、财报分析等高敏场景。本文聚焦MuleSoft平台,详解如何利用DataWeave、Custom Pol 阅读详情

以下是新建的查阅项字段,有一些不足希望能一起讨论

一、新建一个sharepoint项目


二、接着新建一个cs文件作为字段的主要文件

namespace LookUpProject
{
    public class RCustomField : SPFieldLookup
    {
        public RCustomField(SPFieldCollection fields, string fName)
            : base(fields, fName) { }
        public RCustomField(SPFieldCollection fields,
                      string tName, string dName)
            : base(fields, tName, dName) { }


        public override BaseFieldControl FieldRenderingControl
        {
            get
            {
                BaseFieldControl fieldControl = new RCustomFieldControl();       //在下面的内容中定义
                fieldControl.FieldName = this.InternalName;
                return fieldControl;
            }
        } 
    }
}

cs文件中必须包含2个构造函数(2个参数和3个参数),在此文件中还可以添加一些其他方法,可以参考MSDN对SPFieldLookup的介绍。

FieldRenderingControl指定呈现控件类。

注:建立Web部件是要在Sharepoint映射文件夹中

 


三、查阅项与其他字段类型不同在于查阅项的值和查阅项的编辑器控件,首先讨论编辑器控件

namespace LookUpProject
{
    public class RCustomFieldEditor: UserControl, IFieldEditor {

        public bool DisplayAsNewSection { get { return true; } }

        public void InitializeWithField(SPField field) { }

        public void OnSaveChange(SPField field, bool isNewField) {
            RCustomField _f = field as RCustomField;
            SPSite _site = SPControl.GetContextSite(this.Context);
            SPWeb _web = _site.OpenWeb();
            _f.LookupWebId = _web.ID;
            _f.LookupList = _web.Lists["列表名"].ID.ToString();
        }
    }
}

查阅项的编辑器控件必须继承UserControl,同时要实现IFieldEditor接口(DisplayAsNewSection,InitializeWithField,OnSaveChange)

不同的接口实现不同的事件处理,在上述代码中主要实现了点击保存按钮后进行的操作,代码表示默认取得当前上下文中的Site、Web以及一个List。

由于查阅项是对其他列表或文档库的引用,所以需要在创建时设置目标网站ID和列表ID:

_f.LookupWebId = _web.ID;
_f.LookupList = _web.Lists["列表名"].ID.ToString()

编辑器控件的呈现控件代码如下(.ascx):

<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %> 
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" src="~/_controltemplates/InputFormControl.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" src="~/_controltemplates/InputFormSection.ascx" %>
<%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Control Language="C#" AutoEventWireup="false" CompilationMode="Always" Inherits="LookUpProject.RCustomFieldEditor" %>
<wssuc:InputFormSection runat="server" id="RFilterLookupField" Title="Special Column Settings">
  <template_inputformcontrols>
  <wssuc:InputFormControl runat="server" LabelText="Specify detailed options for the filtered lookup column">
      <Template_Control>                       //这里可以添加自定义的控件
       </Template_Control>
    </wssuc:InputFormControl>
    </template_inputformcontrols>
</wssuc:InputFormSection>

 

四、接下来编写上面引用的显示控件:

namespace LookUpProject
{
    public class RCustomFieldControl : BaseFieldControl
    {

        protected override string DefaultTemplateName                         //绑定呈现控件的页面元素
        {
            get { return "UnitedStatesAddressRenderingTemplate"; }
        }

        protected DropDownList DropDownList1;
        protected override void CreateChildControls()
        {
            base.CreateChildControls();
            DropDownList1 = new DropDownList();
            RCustomField f = (RCustomField)base.Field;
            SPSite s = SPControl.GetContextSite(Context);
            SPWeb lookupWeb = s.OpenWeb(f.LookupWebId);                                     
            SPList lookupList = lookupWeb.Lists[new Guid(f.LookupList)];
            SPListItemCollection items = lookupList.Items;
            foreach (SPListItem i in items)
            {
                ListItem _s = new System.Web.UI.WebControls.ListItem(
                     i.Fields[FieldID].GetFieldValueAsText(i[FieldID]), i.ID.ToString());
                DropDownList1.Items.Add(_s);
            }
            this.Controls.Add(DropDownList1);
        }

        public override object Value
        {
            get
            {
                SPFieldLookupValue f = new SPFieldLookupValue(Convert.ToInt32(DropDownList1.SelectedValue),DropDownList1.Text);
                return f;
            }
            set
            {
                this.EnsureChildControls();
                base.Value = value as SPFieldLookupValue;
            }
        }
    }
}

 呈现控件是为了在新建、编辑是呈现的页面,在本文中为了简单明了,只用一个下拉列表显示查阅项内容,在后续的文章中会补充多值查阅项字段。

 CreateChildControls方法用来创建页面控件,根据编辑控件指定的WebID和ListID取得查阅项内容。

 查阅项的Value是 SPFieldLookupValue,由查阅项LookupID和LookupValue组成。

呈现页面代码:

 

<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %> 
<%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<SharePoint:RenderingTemplate runat="server" ID="UnitedStatesAddressRenderingTemplate" >
  <Template>                       //添加需要的控件
  </Template>
</SharePoint:RenderingTemplate>

五、最后是定义字段的XML

<?xml version="1.0" encoding="utf-8" ?>
<FieldTypes>
  <FieldType>
    <Field Name="TypeName">RCustomField</Field>                         //类型名称
    <Field Name="ParentType">Lookup</Field>                             //父类型
    <Field Name="TypeDisplayName">RCustom Field</Field>                 //类型显示名称
    <Field Name="TypeShortDescription">RCustom Field</Field>            //类型描述
    <Field Name="UserCreatable">TRUE</Field>                            //可创建类型
    <Field Name="FieldTypeClass">                                       //绑定程序集
      LookUpProject.RCustomField,
      $SharePoint.Project.AssemblyFullName$
    </Field>
    <Field Name="FieldEditorUserControl">/_controltemplates/RCustomFieldEditor.ascx</Field>    //指定编辑器控件
  </FieldType>
</FieldTypes>

部署解决方案,测试结果


原文发布于:博客园Custom Sharepoint Lookup Field,转载请说明

MuleSoft驱动的企业级AI编排:构建可治理、可审计的LLM工作流 AI编排(AI Orchestration)是企业将大语言模型(LLM)从实验性调用升级为生产级能力的核心范式,其本质是解决非结构化AI输出与结构化企业系统(如SAP、Oracle、Salesforce)之间的语义鸿沟与治理断层。它依托服务编排引擎实现上下文编织、决策路由与反馈闭环,在保障事务一致性、协议兼容性、全链路可观测性及故障弹性的同时,让LLM真正融入SOA/ESB架构。关键技术价值在于将prompt、token、置信度等AI要素纳入企业级审计日志,并通过DataWeave等工具完成跨系统数据语义对 阅读详情

相关推荐

MuleSoft企业级AI编排:构建高可靠LLM集成工作流

AI编排(AI Orchestration)是将大语言模型深度融入企业核心业务系统的关键范式,其本质在于解决LLM的语义泛化能力与ERP、CRM等系统刚性数据契约之间的根本矛盾。通过引入上下文注入、多层护栏机制与闭环反馈,AI编排使LLM输出具备业务可执行性、合规性与可观测性。MuleSoft Anypoint Platform凭借开箱即用的企业连接器、原生策略治理与Runtime Fabric运行时保障,成为实现生产级LLM集成的首选平台。本文聚焦Enterprise LLM Integration落地实

weixin_30240349的博客 527

SharePoint 设置Lookup 字段的值

如何设置Lookup字段的值,首先我们同样需要了解SPFieldLookupValueCollection和SPFieldLookupValue,这2个类的原理和之前所讲解到SPFieldUserValueCollection一样,这里就不多讲解 1 /// <summary> 2 /// Convert dropdownList val...

weixin_34240657的博客 352

MuleSoft企业级AI编排:LLM如何成为可治理的原生服务节点

AI编排(AI Orchestration)是企业将大语言模型(LLM)从实验性调用升级为生产级能力的核心范式,其本质在于通过中心化控制、状态管理与事务一致性,实现LLM调用的可审计、可回滚与合规闭环。区别于简单API集成,真正的AI编排需满足SOX/GDPR等刚性治理要求,解决数据主权、服务韧性、多租户隔离与灰度发布等工程挑战。MuleSoft凭借智能连接器、流内LLM处理器与AI工作流引擎三层能力,使LLM不再是‘黑箱’,而是ESB上可监控、可策略化、可加密审计的原生服务节点。本文聚焦企业AI从PoC走

weixin_30628801的博客 411

有意思的查阅项

在项目中,经常会涉及列表或者文档库之间的相互引用,而这个时候我们用的更多的就是查阅项(lookup),以前没有去关注取值或者赋值的问题,今天正好碰到一个Case,就顺道总结一下。我们知道链接和图片的字段我们通过SPLinkFieldValue取值,那么查阅项通过什么来取值呢?答案是:SPFieldLookupValueCollection或者SPFieldLookupValue,为什么会...

weixin_30287169的博客 189

MuleSoft驱动的企业级AI编排:打通LLM与SAP/ERP的生产落地路径

AI编排(AI Orchestration)是企业将大语言模型深度融入核心业务系统的关键范式,区别于简单调用API的自动化,它强调上下文感知、状态管理、异常熔断与人机协同闭环。其技术基础在于协议转换、数据映射与跨系统事务治理,核心价值体现在破解数据孤岛导致的LLM幻觉、ITSM流程与AI推理脱节引发的延迟,以及缺乏审计追踪带来的合规风险。典型应用场景覆盖采购审批、HR入职、合规审核等需联动SAP S/4HANA、Salesforce、Confluence等异构系统的端到端工作流。MuleSoft凭借其企业级

diyudong4681的博客 601

(Linux)DHCP 超级作用域和中继代理(超难受做了超久)

DHCP服务器在192.168.159.0 可以实现分配IP的功能,现在要跨网段分配IP 就需要用到DHCP中继代理。中继代理有两张网卡分别eth0:IP 192.168.159.2 ;eth1: IP:192.168.200.2 。现在要实现192.168.200.0网段的客户机可以获取DHCP服务器的IP。中继代理其实是相当于一个路由器的作用 DHCP服务器的IP地址 :192.168.159...

DJ_joker的博客 2225

SharePoint 创建 Lookup 类型的Site Column解决跨站问题

在某些情况下,我们需要去引用其他List中的数据,比如在网站集(Site Collection)上有个List叫Country,在其子网站(WebSite)有个List叫Employee,如果要在子Site上的Employee去引用Country中的数据,一般我们会在Site Collection上创建一个网站栏(Site Column)。这是一种解决方案。还有一种解决方案,我们也可以在项目中...

weixin_34092370的博客 189

AD7920实战:从咪头到ADC的音频信号采集电路设计全解析(附电路图)

本文详细解析了基于AD7920 ADC芯片的音频信号采集电路设计全流程。从驻极体咪头的驱动、AD8542运放的两级增益与偏置设计,到关键的抗混叠滤波器配置,以及ADC接口的驱动缓冲与PCB布局要点,提供了完整的实战指南与电路图,帮助开发者实现高质量音频信号采集。

red88的博客 807

sharepoint查阅项(lookup)字段级联的实现(By InfoPath)

InforPath实现的好处是不需要写代码,缺点是发布后表单样式会发生变化。下面开始介绍InfoPath实现方法: 一、首先需要准备3个表,表1为设备类型表,存放设备类型信息: 表1 表2为设备表,存放设备信息,其中设备类型字段为lookup类型,指向的是表1中的标题字段: 表3为设备申请表,存放申请信息,设备类型和设备名均为lookup类型,分别指向表1的标题和表2的标题字段。...

weixin_30647065的博客 367

企业级智能问数开发的核心痛点与技术聚焦

本文介绍了企业级智能问数系统开发的三大核心问题和解决方案:语义解析不精准、SQL生成不健壮、企业适配难落地。文章从开发者视角出发,详细拆解了NLU语义解析、SQL生成、对话记忆、企业级适配四大核心模块的技术实现。 在技术选型方面,推荐了LangChain+DeepSeek-R1、FAISS/Milvus、SQLAlchemy等工具链组合。针对企业级需求,重点讲解了: 语义解析模块的意图识别优化和要素提取技术 SQL生成模块的语法校验与性能优化方案 对话记忆模块的Redis存储实现 企业级适配的三层防护体系和

lamehsl的专栏 1048

国宇测试盒GH7009 SPI读操作全解析:从接线到代码实现的避坑指南

本文详细解析了国宇GH7009测试盒进行SPI读操作的完整流程与避坑要点。重点阐述了硬件连接中IO2时序控制引脚的关键作用,提供了从接线方案、电源处理到上位机代码实现的实战指南,并针对常见的数据不稳定、特定寄存器读取失败等问题给出了具体解决方案。

dapp9builder的博客 224

sharepoint2010的几个类型字段赋值和取值的方法

1、日期类型查询,需要转换,方法如下: //转换时间 string startdate = SPUtility.CreateISO8601DateTimeFromSystemDateTime(DateTime.Now); 2、取用户类型的值 public List<WorkManEntity> GetUsersFromSPFieldUser(SPListItem i...

weixin_30378311的博客 187

Python Trimesh库实战:5分钟搞定STL文件解析与3D模型可视化

本文介绍了如何使用Python的Trimesh库快速解析STL文件并进行3D模型可视化。通过简洁的代码示例,演示了从环境搭建、模型加载、几何数据提取到基础变换和批量处理的核心流程,帮助开发者和工程师在5分钟内高效完成3D数据处理与可视化任务。

weixin_32005771的博客 162

How to create your own custom 404 error page and handle redirect in SharePoint

1. In your MOSS server, make a copy of %systemdrive%\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\LAYOUTS\1033\sps404.html and call it my404.html   2. Create a Vir

lude8880的专栏 560

饥荒联机版Mod开发——modmain环境与API深度解析

本文深入解析饥荒联机版Mod开发中的modmain.lua环境与核心API,详细讲解环境表构建原理、API注册与调用时机,并提供高级开发技巧与最佳实践。通过源码分析和实际案例,帮助开发者掌握Mod开发核心技术,解决常见问题,提升开发效率与代码质量。

weixin_30312563的博客 437

miniDP与DP管脚定义差异详解及设计避坑指南

本文详细解析了Mini DisplayPort与标准DisplayPort接口在管脚定义上的核心差异,通过对比表格直观展示了两者20针脚的不同排列方式,特别是高速差分信号线的分布。文章结合真实设计案例,为硬件工程师提供了从原理图设计、PCB布局到信号完整性考量及故障排查的完整避坑指南,强调绝不能将两者视为简单的物理缩小版。

weixin_29248653的博客 363

转:How to create your own custom 404 error page and handle redirect in SharePoint 2007 (MOSS)?

How to create your own custom 404 error page and handle redirect in SharePoint 2007 (MOSS)? People alway ask how to use their own 404file not found error page vs. the generic one from IE in...

weixin_30791095的博客 123

Linux系统安全学习手册

Linux反弹shell Linux系统应急响应 Linux服务器安全加固 Linux下的用户、组和权限 Linux中的gcc Linux中su和sudo的用法和区别 Linux系统python2与python3共存 Linux中grep工具的使用 Linux中环境变量的设置 Linux中常见的150个命令(干货) Linux中编写Shell脚本 LNMP环境搭建Wordpress博客 LAMP环境搭建一个Discuz论坛 Linux运维比较常用的一些脚本 Linux系统中安装软

谢公子的博客 7535

SharePoint 2013 Step by Step——使用自定义的List Template

阅读目录 Overview How To See Also 回到顶部 Overview 对于企业员工来说,"扁平结构"的LIST是日常操作中经常使用到的,LIST的好处是方便数据的录入以及数据的整理分析,尤其是Quick Edit功能,可以实现快速编辑。对于SharePoint 2013而言,默认在Site Contents中提供了自定...

weixin_34309543的博客 125

TMS_WebGMaps_1.9.8.0_Full_Source

TMS_WebGMaps_1.9.8.0_Full_Source 全源码 delphi cbuilder

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

How to create your own custom 404 error page and handle redirect in SharePoint 2007 (MOSS)?

People alway ask how to use their own 404 file not found error page vs. the generic one from IE in MOSS environment. The following example catches the 404 error and sends users to a redirect page. 

姜兴的专栏 733

IMSL CNL 7.0.0 (x86-64)Crack

IMSL CNL 7.0.0 (x86-64)Crack intel的算法库破解文件,这是C++版本的破解文件

别再死记硬背!用NETDMIS 5.0评价键槽对称度,搞懂这3个核心步骤就够了

本文深入解析NETDMIS 5.0评价键槽对称度的3个核心步骤,从建立坐标系到构造对称中点,再到系统化测量与评价。通过详细的操作指导和原理分析,帮助技术人员高效完成精密测量,提升质量控制水平。

weixin_33720078的博客 439

MuleSoft+LLM企业级AI编排:构建可审计、可管控的智能工作流

AI编排(AI Orchestration)是大模型落地企业核心系统的底层范式,其本质是将自然语言意图转化为跨系统、可验证、带业务规则校验的结构化执行流。它依托API管理与集成平台实现协议适配、安全网关、服务路由与端到端可观测性,解决LLM直连导致的合规风险、协议不兼容与流程不可控问题。关键技术价值在于弥合AI能力与企业IT资产之间的断层,支撑智能合同审查、动态工单升级、风控策略联动等高价值场景。本文聚焦MuleSoft作为AI神经中枢的工程实践,深入解析DataWeave结构化转换、运行时策略引擎校验、多

weixin_30487201的博客 362

MuleSoft企业级AI编排:让大模型真正听懂ERP与CRM

AI编排(AI Orchestration)是将大语言模型深度融入企业核心业务系统的关键范式,其本质在于解决LLM的语义泛化能力与ERP、CRM等系统严苛数据契约之间的根本矛盾。通过上下文注入、动态校验、安全护栏与反馈闭环,AI编排使LLM输出从‘看似合理’升级为‘生产可用’。MuleSoft Anypoint Platform凭借开箱即用的企业连接器、原生策略治理与Runtime Fabric高可靠运行时,成为落地Enterprise LLM Integration的首选基础设施。本文聚焦真实产线场景——

aijia7039的博客 392

MuleSoft驱动的企业级AI编排实战:连接、治理与生产落地

AI编排(AI Orchestration)是企业将大语言模型深度融入核心业务系统的关键范式,其本质是在异构系统间构建可审计、可回滚、高韧性的智能流程链路。它超越简单API调用,聚焦协议适配、数据语义转换、服务治理与混合部署等底层能力,解决数据孤岛、安全合规与系统老化带来的AI落地断层。MuleSoft凭借原生连接器、DataWeave数据净化、Runtime Fabric混合AI路由及业务级可观测性,成为金融、制造、政务等领域实现Enterprise AI的首选中枢。本文以合同审查为切入点,详解如何通过可

tyygming的专栏 323

MuleSoft+LangChain企业AI集成架构实战

企业AI落地的核心挑战并非模型能力不足,而是数据流、控制流与权限流在多系统间缺乏统一调度。本文围绕API集成与大语言模型协同这一关键技术命题,深入解析如何利用MuleSoft实现合规、可治理、高可用的企业级数据编织(Data Fabric),同时借助LangChain完成动态提示工程、多跳推理与上下文感知等AI原生任务。重点覆盖数据主权保障、OAuth令牌安全传递、PII字段自动脱敏、混合云服务编排等真实场景难题,为集成架构师与AI工程师提供一条兼顾审计合规性与AI敏捷性的可验证实施路径。

weixin_34354173的博客 348
上一篇: Sharepoint应用EWSManagedAPI操作Exchange邮箱
Ryan1221
博客等级 码龄14年 0粉丝 4原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值