temp deliver for IBF, part one!

 

While using a template with empty elements, structure is organized as follows:

-Metadata Scopes

-Entities

-Views

-Menu Item Definition

-Actions

-Relationship

-View Locators

-Ports [empty]

-Operations [empty]

-Transformations [empty]

-Schemas [empty]

-Translations [empty]

-Groups [empty]

 

When we add metadata information, we add 'SayHello' under Metadata Scopes. It's reasonable, because we have the web service at "http://localhost/IBFSimpleSolution/SayHello.asmx". One purpose of the metadata here is for rendering that service. (am I using the correct word 'rendering'? Is it a right understanding? Not for sure, But I think so for now)

 

 

Remember in the IBFSimpleSolution, we defined a Friend class and a GreetingMessage class. They seems to be in the equal level, but here, they belongs separately, Friend in Entity and GreetingMessage in View. Why? In my point of View, there is misunderstanding here. As I illustrated above, what we're going to render here is the service represented by "http://localhost/IBFSimpleSolution/SayHello.asmx", instead of the classes we created at the server side. (we can take that as a reference, as it may represent the business objects in LOB, while the concern should be from the service aspect)

 

Ok, one question. "why it chooses 'Friend' as an entity and GreetingMessage As the view?" Here is a possible answer of my own. Bear in mind that we created one SayHello service with two operations: GetGreetingMessage & TestGetGreetingMessage. The second one is for testing, so let's focus on the first one. Let's see the definition of GetGreetingMessage.

 

Public GreetingMessage GetGreetingMessage(Friend aFriend){…}

The return type is GreetingMessage which is some kind of representation of aFriend. And aFriend is of Friend type which is the LOB oject in this case. because a "Friend"
object will be used as the starting point for invoking IBF Services. And The name of the friend can also be used to build a greeting message. Optionally, the name of the friend can be used to decide the type of message to be returned. How about the GreetingMessage Views? In the "Greeting Service" application, each Friend entity would have a greeting message associated with it. Hence, we shall define a view named "GreetingMessage". So the relationship between entity and view seems a little bit clear. Does it means that this kind of structure interprets the input and output direction of a procedure (service operation)? what is the truth? Don't know yet. Later research should be focused on more about the term such as 'Entity', 'View', etc.

 

For now, we've already know that, in the 'SayHello' metadata scope (which is used for rendering the service), we have the 'Friend' as our entity, and 'GreetingMessage' as the view of 'Friend'. What else do we know? Nothing.

 

It doesn't mean anything If we just stop here. We even don't know what "Friend" and "GreetingMessage" are. We need do something more. In the 'Beginner's reference 13/64', it says "The next step is to create Port elements to store the XML Schema definition for the Friend Entity and the GreetingMessage View." So, here, one question again. "what is a port? What does port really mean?" It's quite intuitive that when you want to input something, you should use the 'port', and if you want to get something, you should use the 'port'. Both 'ports' are standardized.  It looks quite reasonable to think of 'port' like this, but is it really true? I am not sure. Let's check it later.  For now, I just assume that the 'FriendPort' must be filled with an object which suits for the schema definition . And from the 'GreetingMessagePort', there must be a GreetingMessage object qulified by related schema definition. But it doesn't mean that the 'FriendPort' and 'GreetingMessagePort' already have set up some kind of relationships between 'Friend' entity and 'GreetingMessage' View for their similar names. I think you can also call them 'port1' and 'port2'. Let's see later if they would be binded or connected.

 

Now, as the reference illustrated, we need to set up the Schema elements corresponding to each of the ports created above. I was always wondering why we still need to create schema elements if we already have the schema definition for ports. Truly, you can see that, the schema definitions of ports are referenced in the schemas elements which means they are not duplicated information. But still why? Why do we need that? I'll think about it later.

 

(Oh, gush. I see it now. After you define the schema elements, we set up the 'Friends' DefaultReferenceSchemaName to the newly defined element. That's something like binding, and it's logically true because, there should be a binding. Imagine that there is a service. Of course, the operation parameter's type should be bound with the parameter itself. That makes sense. Got it! Conclution, schema elements are acting as a binding role.)

 

All right, now, as the author said in the reference, "at this stage, the Metadata contains all the information related to the data objects that will commute on this Virtual Information Bridge connecting Office applications to our Web Service". Let's make a review what we've already got.

 

1. entity and view (reference by the service operation)

2. ports (how to access entities and views)

3. schema element (not dup, but for what are we going to use it?  Binding! And contrarily, if we have schema, why do we use ports storing schema definition there? Is it something about the 'direction'? Input? Output? Maybe. Also binding)

4. Binding 'entity' and its type using schema, and the same to 'view'

 

And….Yes. I think that's the information we need to describe the service. So, now we have the outline the metadata structure which is suitable for describing and holding the service information.

 

Till now. I think all that mentioned above is about how IBF organizes the metadata in the rendering level. (how it describes a 'service',  'service function', a 'procedure', something like a CONTAINER)

 

Next, I will say something about the metadata organization in the operational level (as I name it).

 

Now, we already have the container (the metadata in the rendering level), I don't know if it locates at the client side or the server side. I think the metadata I've mentioned till now locates at the client side, here is a sample diagram for that.  What will the server side metadata (or metadata service) look like? I wondered.

 

Ok, let's move on. I remember in Java. When you've got a web service. It's something like the URI: "http://localhost/HelloWorldService/HelloWorld.WSDL". After you import the service, you can create a new service instance in your code to access the operations that are provided within the service. And here in IBF solution, there is a similar way. To access the service provided in the URI "http://localhost/IBFSimpleSolution/SayHello.asmx", you need to create a port for that (something similar with the service instance in JAVA). 

 

When you get the service in the port, now it's time for you to define the desired operations. In this case, it is the GetGreetingMessage operation. Oh, My Gush! I made a mistake. Here, the operation GetGreetingMessage is still used for describing the service. In java, when you create a new service instance (eg. myService), you can directly call directly 'myService.GetGreetingMessage'. In IBF (at least here), things are a little bit different. You need to define an operation and bind it with the service operation which is represented using the SOAP Action.

 

All right, Now, I can say that, we have already well prepared for describing the service. Can I now call it as the 'Rendering level' now? Probably…..

深度学习是机器学习的一个子领域,它基于人工神经网络的研究,特别是利用多层次的神经网络来进行学习和模式识别。深度学习模型能够学习数据的高层次特征,这些特征对于图像和语音识别、自然语言处理、医学图像分析等应用至关重要。以下是深度学习的一些关键概念和组成部分: 1. **神经网络(Neural Networks)**:深度学习的基础是人工神经网络,它是由多个层组成的网络结构,包括输入层、隐藏层和输出层。每个层由多个神经元组成,神经元之间通过权重连接。 2. **前馈神经网络(Feedforward Neural Networks)**:这是最常见的神经网络类型,信息从输入层流向隐藏层,最终到达输出层。 3. **卷积神经网络(Convolutional Neural Networks, CNNs)**:这种网络特别适合处理具有网格结构的数据,如图像。它们使用卷积层来提取图像的特征。 4. **循环神经网络(Recurrent Neural Networks, RNNs)**:这种网络能够处理序列数据,如时间序列或自然语言,因为它们具有记忆功能,能够捕捉数据中的时间依赖性。 5. **长短期记忆网络(Long Short-Term Memory, LSTM)**:LSTM 是一种特殊的 RNN,它能够学习长期依赖关系,非常适合复杂的序列预测任务。 6. **生成对抗网络(Generative Adversarial Networks, GANs)**:由两个网络组成,一个生成器和一个判别器,它们相互竞争,生成器生成数据,判别器评估数据的真实性。 7. **深度学习框架**:如 TensorFlow、Keras、PyTorch 等,这些框架提供了构建、训练和部署深度学习模型的工具和库。 8. **激活函数(Activation Functions)**:如 ReLU、Sigmoid、Tanh 等,它们在神经网络中用于添加非线性,使得网络能够学习复杂的函数。 9. **损失函数(Loss Functions)**:用于评估模型的预测与真实值之间的差异,常见的损失函数包括均方误差(MSE)、交叉熵(Cross-Entropy)等。 10. **优化算法(Optimization Algorithms)**:如梯度下降(Gradient Descent)、随机梯度下降(SGD)、Adam 等,用于更新网络权重,以最小化损失函数。 11. **正则化(Regularization)**:技术如 Dropout、L1/L2 正则化等,用于防止模型过拟合。 12. **迁移学习(Transfer Learning)**:利用在一个任务上训练好的模型来提高另一个相关任务的性能。 深度学习在许多领域都取得了显著的成就,但它也面临着一些挑战,如对大量数据的依赖、模型的解释性差、计算资源消耗大等。研究人员正在不断探索新的方法来解决这些问题。
Extreme programming (XP) is a software development methodology that emphasizes teamwork, communication, simplicity, feedback, and customer satisfaction. Here are some key practices for XP: 1. Planning: Planning is an essential part of XP. The team plans the project in short iterations called "sprints" and they prioritize the tasks to be done in each sprint. 2. Pair programming: Pair programming is a technique in which two programmers work together on the same computer. One programmer writes the code and the other reviews it. This helps to catch errors and improve the quality of the code. 3. Continuous integration: Continuous integration is the practice of integrating code changes into the main codebase frequently. This helps to identify and fix integration issues early in the development cycle. 4. Test-driven development: Test-driven development (TDD) is a development technique in which tests are written before the code is written. This helps to ensure that the code is correct and meets the requirements. 5. Refactoring: Refactoring is the process of improving the design of the code without changing its functionality. This helps to keep the code maintainable and flexible. 6. Simple design: XP emphasizes keeping the design of the code simple and easy to understand. This helps to reduce complexity and improve maintainability. 7. Continuous feedback: XP emphasizes continuous feedback from the customer and the team. This helps to ensure that the project is on track and meets the customer's needs. These are just some of the key practices of XP. By following these practices, the team can improve the quality of the code, reduce the risk of errors, and deliver high-quality software that meets the customer's needs.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值