CN109298831A - Information storage means and device - Google Patents

Information storage means and device Download PDF

Info

Publication number
CN109298831A
CN109298831A CN201710606581.7A CN201710606581A CN109298831A CN 109298831 A CN109298831 A CN 109298831A CN 201710606581 A CN201710606581 A CN 201710606581A CN 109298831 A CN109298831 A CN 109298831A
Authority
CN
China
Prior art keywords
model
information
object module
stored
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710606581.7A
Other languages
Chinese (zh)
Other versions
CN109298831B (en
Inventor
游正朋
徐峰
梅尚健
陈诚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201710606581.7A priority Critical patent/CN109298831B/en
Publication of CN109298831A publication Critical patent/CN109298831A/en
Application granted granted Critical
Publication of CN109298831B publication Critical patent/CN109298831B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0643Management of files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/067Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the present application discloses information storage means and device.One specific embodiment of this method includes: the model information that periodically stores in the determining management server with the presence or absence of updating;It is updated in response to determining that the model information exists, the updated model information is parsed, determines the model for existing and updating;Using identified model as object module, the local PMML file for whether being stored with the object module is determined;In response to determining the PMML file of the local not stored object module, the PMML file of the object module is downloaded and stored from Cloud Server.This embodiment improves the flexibilities of model deployment.

Description

Information storage means and device
Technical field
This application involves field of computer technology, and in particular to Internet technical field more particularly to information storage means And device.
Background technique
With the development of computer technology, machine learning method using more and more extensive.Point in machine learning at present The models such as class, prediction, cluster have been widely used for the fields such as e-commerce, commercial product recommending, Spam Classification.
In general, technical staff needs to translate into source generation according to business demand training pattern, and by trained model parameter Code, and then respective handling result is obtained using the model.However, needing to re-execute the sieve of model after business changes Choosing, training and the operation for translating source code, thus there is a problem that the flexibility of model deployment is lower.
Summary of the invention
The purpose of the embodiment of the present application is to propose a kind of improved information storage means and device, to solve background above The technical issues of technology segment is mentioned.
In a first aspect, the embodiment of the present application provides a kind of information storage means for model server, model service Device is communicated to connect with management server and Cloud Server respectively, and management server and Cloud Server communicate to connect, management server For storage model information, Cloud Server is used for the oracle model markup language PMML file of storage model, this method comprises: all Determine to phase property the model information stored in management server with the presence or absence of update;It is updated in response to determining that model information exists, Updated model information is parsed, determines the model for existing and updating;Using identified model as object module, determine The local PMML file for whether being stored with object module;In response to determining the PMML file of local not stored object module, from cloud Server is downloaded and stores the PMML file of object module.
In some embodiments, in response to determining the local not stored PMML file for having object module, under Cloud Server Carry and store the PMML file of object module, comprising: in response to determining the local not stored PMML file for having object module, from cloud Server downloads the PMML file of object module, and with the entitled key of object module, in the PMML file of object module Content is value, is stored in the form of key-value pair into the dictionary container of memory.
In some embodiments, model information includes: title, version number, input paramete information and the output result of model Information.
In some embodiments, after downloading from Cloud Server and storing the PMML file of object module, this method is also It include: that the input paramete information of determining object module and output result information whether there is update respectively;In response to determining target The input paramete information of model or output result information, which exist, to be updated, by the input paramete information of pre-stored object module or Output result information replaces with the input paramete information or output result information of updated object module.
In some embodiments, model server also calls client communication to connect with model;And this method further include: In response to receiving the model call request of title that model calling client is sent, comprising model to be called, inquire wait adjust With the input paramete information of model, and the input paramete information inquired is back to model and calls client;Receive model tune Input parameter is input to model to be called, obtains output corresponding with input parameter by the input parameter sent with client As a result, and output result is back to model calling client.
Second aspect, the embodiment of the present application provide a kind of information-storing device for model server, model service Device is communicated to connect with management server and Cloud Server respectively, and management server and Cloud Server communicate to connect, management server For storage model information, Cloud Server is used for the oracle model markup language PMML file of storage model, which includes: the One determination unit is configured to periodically determine the model information stored in management server with the presence or absence of update;Parsing is single Member is configured to there is update in response to determining model information, parses to updated model information, determine there is update Model;Second determination unit is configured to determine locally whether be stored with target using identified model as object module The PMML file of model;Storage unit is configured to take in response to determining the PMML file of local not stored object module from cloud Business device is downloaded and stores the PMML file of object module.
In some embodiments, storage unit is further configured to: having object module in response to determination is locally not stored PMML file, from the PMML file of Cloud Server downloading object module, and with the entitled key of object module, with object module PMML file in content be value, stored in the form of key-value pair into the dictionary container of memory.
In some embodiments, model information includes: title, version number, input paramete information and the output result of model Information.
In some embodiments, device further include: third determination unit is configured to determine the input of object module respectively Parameter information and output result information are with the presence or absence of update;Replacement unit is configured to the input in response to determining object module Parameter information or output result information, which exist, to be updated, by the input paramete information of pre-stored object module or output result letter Breath replaces with the input paramete information or output result information of updated object module.
In some embodiments, model server also calls client communication to connect with model;And the device further include: Query unit is configured to the model in response to receiving title that model calling client is sent, comprising model to be called Call request inquires the input paramete information of model to be called, and the input paramete information inquired is back to model and is called Client;Input unit is configured to receive the input parameter that model calls client to send, input parameter is input to wait adjust With model, output corresponding with input parameter is obtained as a result, and output result is back to model calling client.
The third aspect, the embodiment of the present application provide a kind of server, comprising: one or more processors;Storage device, For storing one or more programs, when one or more programs are executed by one or more processors, so that one or more Processor realizes the method such as any embodiment in information storage means.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium, are stored thereon with computer journey Sequence realizes the method such as any embodiment in information storage means when the program is executed by processor.
Information storage means provided by the embodiments of the present application and device are stored by periodically determining in management server Model information with the presence or absence of update, so as to determine model information deposit in the updated, determine exist update model, then will Identified model determines the local PMML file for whether being stored with object module as object module, to determine locally After the PMML file of not stored object module, the PMML file of object module is downloaded and stored from Cloud Server, so as to and When store newest model, newest model is directly provided when business changes, do not need when business changes into The training of row model and by the model parameter write-in operation such as source code, improves the flexibility of model deployment.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is that this application can be applied to exemplary system architecture figures therein;
Fig. 2 is the flow chart according to one embodiment of the information storage means of the application;
Fig. 3 is the schematic diagram according to an application scenarios of the information storage means of the application;
Fig. 4 is the flow chart according to another embodiment of the information storage means of the application;
Fig. 5 is the structural schematic diagram according to one embodiment of the information-storing device of the application;
Fig. 6 is adapted for the structural schematic diagram for the computer system for realizing the server of the embodiment of the present application.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to Convenient for description, part relevant to related invention is illustrated only in attached drawing.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 is shown can be using the information storage means of the application or the exemplary system architecture of information-storing device 100。
As shown in Figure 1, system architecture 100 may include model server 101, management server 103, Cloud Server 105 With network 102,104,106.Network 102 between model server 101 and management server 103 to provide communication link Medium, network 104 are used to provide the medium of communication link, network 106 between model server 101 and Cloud Server 105 To provide the medium of communication link between management server 103 and Cloud Server 105.Network 102,104,106 may include Various connection types, such as wired, wireless communication link or fiber optic cables etc..
Cloud Server 105 can be used for storage model PMML (Predictive Model Markup Language, in advance Say model markup language) file.User (such as algorithm engineering teacher, Project Manager etc.) can at any time will be trained The PMML file is uploaded to Cloud Server 105 at PMML file by model structure and model parameter storage.In practice, PMML is A kind of the fact that machine learning field standard language, data mining model for rendering.It is with XML (Extensible Markup Language, extensible markup language) it is that machine learning and data mining task are standardized by carrier, it can be a certain production The machine learning or data mining scheme that product are created are applied in any other product or platform for deferring to PMML standard, without It need to consider the specific implementation details in algorithm model.
Management server 103 can be used for storage model information.User (such as algorithm engineering teacher, Project Manager etc.) can Management server 103, above-mentioned model letter are uploaded to the corresponding model information of the PMML file that will be stored with Cloud Server Breath can include but is not limited to title, version number of model etc..
It should be noted that the PMML file that user can also store Cloud Server 105 executes the behaviour such as downloading, deletion Make.Correspondingly, i.e., the PMML file that the model information and Cloud Server 105 that management server 103 is stored are stored is Each PMML file corresponds to a model information.
Model server 101 can provide model for client used in user (such as Developmental Engineer) and call clothes Business.Model server 101 can periodically determine that the model information stored in management server 103 is by network 102 It is no to there is update, the PMML file of simultaneously storage model can also be downloaded from Cloud Server 105 by network 104.
It should be noted that information storage means provided by the embodiment of the present application are generally executed by model server 101, Correspondingly, information-storing device is generally positioned in model server 101.
It should be understood that the number of terminal device, network and server in Fig. 1 is only schematical.According to realization need It wants, can have any number of model server, management server, Cloud Server and network.
With continued reference to Fig. 2, an implementation of the information storage means for model server according to the application is shown The process 200 of example.Above-mentioned model server can communicate to connect respectively with management server and Cloud Server, above-mentioned management service Device can be communicated to connect with above-mentioned Cloud Server, and above-mentioned management server can be used for storage model information, above-mentioned Cloud Server It can be used for the oracle model markup language PMML file of storage model.The information storage means, comprising the following steps:
Step 201, periodically determine the model information stored in management server with the presence or absence of update.
In the present embodiment, electronic equipment (such as the model server shown in FIG. 1 of information storage means operation thereon 101) it can determine that management server is (such as shown in FIG. 1 periodically by wired connection mode or radio connection Management server 103) in store model information with the presence or absence of update, wherein above-mentioned model information can be related to model Various information, can include but is not limited to the title of model, the version number of model, function introduction of model etc..It needs to illustrate , the PMML file that the model information and Cloud Server that management server is stored are stored be it is one-to-one, i.e., it is each A PMML file corresponds to a model information.It should be pointed out that above-mentioned radio connection can include but is not limited to 3G/ 4G connection, WiFi connection, bluetooth connection, WiMAX connection, Zigbee connection, UWB (ultra wideband) connection, Yi Jiqi The radio connection that he develops currently known or future.
Above-mentioned electronic equipment can use various modes and determine model information with the presence or absence of update.As an example, above-mentioned electricity Initial model information is can store in sub- equipment, above-mentioned electronic equipment can take above-mentioned initial model information and above-mentioned management The model information that business device is stored is matched;It is stored in response to the above-mentioned initial model information of determination with above-mentioned management server Model information have differences, the model information that stores in above-mentioned management server can be determined with the presence or absence of updating.It needs Bright, for each period, after having executed the operation whether determining model information updates, above-mentioned electronic equipment can be incited somebody to action Storage model information in the management server download and is stored to local, execution next period determination model information whether When the operation of update, the matching of model information is carried out using the local model information stored as initial model information.
In some optional implementations of the present embodiment, each mould can also be stored in above-mentioned management server The renewal time of type information, above-mentioned electronic equipment can recorde the operation for executing the operation for determining whether model information updates every time Time.Whether above-mentioned electronic equipment can determine model information with the operating time recorded according to the renewal time of model information There are updates.Specifically, above-mentioned electronic equipment can obtain the update of model information that management server is stored, each first Time;Later, for each model information, above-mentioned electronic equipment can determine that a cycle executes and determine that model information is The operating time of the operation of no update whether earlier than the model information renewal time, if so, above-mentioned management clothes can be determined The model information that business device is stored, which exists, to be updated.
Step 202, it updates, updated model information is parsed, determination is deposited in response to determining that model information exists In the model of update.
In the present embodiment, above-mentioned electronic equipment is deposited in response to the model information stored in the above-mentioned management server of determination It is updating, can extract in the presence of the model information updated.Since model information may include the letter such as title and version number of model Breath, thus, above-mentioned electronic equipment can determine the title of model from extracted model information, by identified name referring The model shown is determined as in the presence of the model updated.
Step 203, using identified model as object module, the local PMML text for whether being stored with object module is determined Part.
In the present embodiment, above-mentioned electronic equipment can be using the model determined by step 202, there are update as target Model determines the local PMML file for whether being stored with above-mentioned object module.It can be in practice, in the memory of above-mentioned electronic equipment It is stored with the PMML file of multiple models, so as to user (such as Developmental Engineer) calling.
Step 204, it in response to the PMML file of determining local not stored object module, is downloaded from Cloud Server and stores mesh Mark the PMML file of model.
In the present embodiment, in response to determining the PMML file of local not stored object module, above-mentioned electronic equipment can be with The PMML file of object module is downloaded and stored from Cloud Server (such as Cloud Server 105 shown in FIG. 1).It is above-mentioned in practice The PMML file of above-mentioned object module can be stored in memory by electronic equipment, so as to user's calling.
With continued reference to the schematic diagram that Fig. 3, Fig. 3 are according to the application scenarios of the information storage means of the present embodiment.? In the application scenarios of Fig. 3, model server 301 periodically determines that the model information stored in management server 302 is first It is no to there is update;Then, model server 301 is updated in response to determining that model information exists, and determines updated model information It is parsed, determines the model for existing and updating;Later, model server 301 is determined using identified model as object module The local PMML file for whether being stored with object module;Finally, model server 301 is in response to determining local not stored target mould The PMML file of object module is downloaded from Cloud Server 303 and stored to the PMML file of type.
The method provided by the above embodiment of the application, by periodically determining that the model stored in management server is believed Breath with the presence or absence of update, so as to determine model information deposit in the updated, determine exist update model, then will determined by Model is as object module, the local PMML file for whether being stored with object module of determination, so as on determining that local is not stored After the PMML file for stating object module, the PMML file of object module is downloaded and stored from above-mentioned Cloud Server, so as to and When store newest model, newest model is directly provided when business changes, do not need when business changes into The training of row model and by the model parameter write-in operation such as source code, improves the flexibility of model deployment.
With further reference to Fig. 4, it illustrates the streams of another embodiment of the information storage means for model server Journey 400.Above-mentioned model server can communicate to connect respectively with management server and Cloud Server, and above-mentioned management server can be with It is communicated to connect with above-mentioned Cloud Server, above-mentioned management server can be used for storage model information, and above-mentioned Cloud Server can be used In the oracle model markup language PMML file of storage model.The process 400 of the information storage means, comprising the following steps:
Step 401, periodically determine the model information stored in management server with the presence or absence of update.
In the present embodiment, electronic equipment (such as the model server shown in FIG. 1 of information storage means operation thereon 101) can periodically determine the model information stored in management server (such as management server 103 shown in FIG. 1) is It is no to there is update, wherein above-mentioned model information can be various information relevant to model, can include but is not limited to model Title, version number, input paramete information and output result information etc..Herein, above-mentioned input paramete information can be model use When need to be input to the information of parameter in model, above-mentioned input paramete information may include input parameter name and input parameter Type.Above-mentioned output result information can be model output when model uses as a result, above-mentioned output result information can be with Title and output result type including exporting result.Initial model information (introductory die is can store in above-mentioned electronic equipment Type information can include but is not limited to title, version number, input paramete information and output result information of model etc.), above-mentioned electricity Sub- equipment can match above-mentioned initial model information with the model information that above-mentioned management server is stored, and pass through inspection Whether model name and version number in model information change to determine model information with the presence or absence of update.It needs to illustrate It is that, for each period, after having executed determining model information with the presence or absence of the operation updated, above-mentioned electronic equipment can be incited somebody to action The model information of storage in the management server is downloaded and is stored to local.It is in the determination model information for executing next cycle When the operation of no update, the matching of model information is carried out using the local model information stored as initial model information.
Step 402, it updates, updated model information is parsed, determination is deposited in response to determining that model information exists In the model of update.
In the present embodiment, above-mentioned electronic equipment is deposited in response to the model information stored in the above-mentioned management server of determination It is updating, can extract in the presence of the model information updated.Since model information may include the letter such as title and version number of model Breath, thus, above-mentioned electronic equipment can determine the title of model from extracted model information, by identified name referring The model shown is determined as in the presence of the model updated.
Step 403, using identified model as object module, the local PMML text for whether being stored with object module is determined Part.
In the present embodiment, above-mentioned electronic equipment can be using the model determined by step 402, there are update as target Model determines the local PMML file for whether being stored with above-mentioned object module.It can be in practice, in the memory of above-mentioned electronic equipment It is stored with the PMML file of multiple models, so as to user (such as Developmental Engineer) calling, and the PMML file stored can be with It is the entitled key with model, is value with the content in the PMML file of model, the word of memory is stored in the form of key-value pair In allusion quotation container.Wherein, above-mentioned dictionary container can be for store the data with one-to-one relationship container (such as Common HashMap container in Java language, common Map container etc. in C Plus Plus).
It should be noted that the operation of above-mentioned steps 401-403 and the operation of above-mentioned steps 201-203 are essentially identical, This is repeated no more.
Step 404, in response to determining the local not stored PMML file for having object module, target mould is downloaded from Cloud Server The PMML file of type, and with the entitled key of object module, it is value with the content in the PMML file of object module, with key-value pair Form stored into the dictionary container of memory.
In the present embodiment, in response to determining the PMML file of local not stored object module, above-mentioned electronic equipment can be with The PMML file of above-mentioned object module is downloaded, and from Cloud Server (such as Cloud Server 105 shown in FIG. 1) with above-mentioned target mould The entitled key of type is value with the content in the PMML file of above-mentioned object module, is stored in the form of key-value pair to memory In dictionary container.
Step 405, the input paramete information and output result information for determining object module respectively are with the presence or absence of update.
In the present embodiment, above-mentioned electronic equipment can determine the input paramete information and output result of object module respectively Information is with the presence or absence of update.For determining input paramete information, above-mentioned electronic equipment can be by being deposited management server Input paramete information in the model information of the object module of storage in the initial model information for the object module being locally stored Input paramete information is matched, if the two has differences, can be determined that input paramete information exists and be updated.
Step 406, exist in response to the input paramete information or output result information that determine object module and update, it will be preparatory The input paramete information or output result information of the object module of storage replace with the input parameter letter of updated object module Breath or output result information.
In the present embodiment, exist in response to the input paramete information or output result information that determine object module and update, Above-mentioned electronic equipment can be (i.e. local to be stored by the input paramete information of pre-stored object module or output result information Object module initial model information in input paramete information or output result information) replace with updated object module Input paramete information or output result information.
Step 407, model tune that client sends, title comprising model to be called is called in response to receiving model With request, the input paramete information of model to be called is inquired, and the input paramete information inquired is back to model and calls visitor Family end.
In the present embodiment, in response to receiving title that model calling client is sent, comprising model to be called Model call request, above-mentioned electronic equipment can above-mentioned inquiry model to be called input paramete information, and it is defeated by what is inquired Enter parameter information and is back to model calling client.It should be noted that step 407-408 can be carried out at any time, no It is limited to execute after step 406.
Step 408, the input parameter that model calls client to send is received, input parameter is input to model to be called, Output corresponding with input parameter is obtained as a result, and output result is back to model calling client.
In the present embodiment, above-mentioned electronic equipment can receive the input parameter that model calls client to send first, In, above-mentioned input parameter can be input indicated by each input parameter name in the input paramete information of model to be called The specific value of parameter.Later, above-mentioned input parameter can be input to model to be called by above-mentioned electronic equipment, obtain with it is above-mentioned The corresponding output of input parameter is as a result, and be back to model calling client for output result.
Figure 4, it is seen that compared with the corresponding embodiment of Fig. 2, the process of the information storage means in the present embodiment 400 highlight the step of updating input paramete information and output result information, and based on memory in the letter of model that is stored The step of breath and data carry out model use and obtain output result.The scheme of the present embodiment description can be on line as a result, Real time data carries out model result output, and all calculating and expense is in memory, improves the output speed of model;Together When, after the input paramete information of model updates, model, which calls client that need to only change input parameter, can reuse model, Further improve the flexibility of model deployment.
With further reference to Fig. 5, as the realization to method shown in above-mentioned each figure, this application provides a kind of storages of information to fill The one embodiment set, the Installation practice is corresponding with embodiment of the method shown in Fig. 2, which specifically can be applied to mould In type server.
As shown in figure 5, the above-mentioned information-storing device 500 of the present embodiment includes: the first determination unit 501, it is configured to Periodically determine the model information stored in above-mentioned management server with the presence or absence of update;Resolution unit 502 is configured to ring It should be updated in determining that above-mentioned model information exists, updated above-mentioned model information is parsed, determines the mould for existing and updating Type;Second determination unit 503 is configured to using identified model as object module, and it is above-mentioned whether determination is locally stored with The PMML file of object module;Storage unit 504 is configured to the PMML in response to determining local not stored above-mentioned object module The PMML file of above-mentioned object module is downloaded from above-mentioned Cloud Server and stored to file.
In the present embodiment, above-mentioned first determination unit 501 can periodically determine management server (such as Fig. 1 institute The management server 103 shown) in store model information with the presence or absence of update.As an example, above-mentioned first determination unit 501 can To match pre-stored initial model information with the model information that above-mentioned management server is stored, in response to determination The model information that above-mentioned initial model information is stored with above-mentioned management server has differences, and can determine above-mentioned management service The model information stored in device is with the presence or absence of update.
In the present embodiment, above-mentioned resolution unit 502 is believed in response to the model stored in the above-mentioned management server of determination Breath, which exists, to be updated, and can be extracted in the presence of the model information updated.Since model information may include title and the version number of model Etc. information, therefore, it is possible to from extracted model information determine model title, the model that identified name referring is shown It is determined as in the presence of the model updated.
In the present embodiment, above-mentioned second determination unit 503 can with determined by above-mentioned resolution unit 502, there is update Model as object module, determine the local PMML file for whether being stored with above-mentioned object module.In practice, above-mentioned model clothes It is engaged in can store the PMML file of multiple models in the memory of device, so as to user (such as Developmental Engineer) calling.
In the present embodiment, in response to the PMML file of determining local not stored object module, said memory cells 504 can To be downloaded from Cloud Server (such as Cloud Server 105 shown in FIG. 1) and store the PMML file of object module.In practice, on Stating storage unit 504 can be stored in the PMML file of above-mentioned object module in the memory of model server, so as to user's tune With.
In some optional implementations of the present embodiment, said memory cells 504 can further be configured to ring Above-mentioned object module should be downloaded from above-mentioned Cloud Server in determining the local not stored PMML file for having above-mentioned object module PMML file, and with the entitled key of above-mentioned object module, it is value with the content in the PMML file of above-mentioned object module, with key The form of value pair is stored into the dictionary container of memory.
In some optional implementations of the present embodiment, above-mentioned model information can include but is not limited to the name of model Title, version number, input paramete information and output result information.
In some optional implementations of the present embodiment, above- mentioned information storage device 500 further includes that third determines list Member and replacement unit (not shown).Wherein, above-mentioned third determination unit may be configured to determine above-mentioned target mould respectively The input paramete information and output result information of type are with the presence or absence of update.Above-mentioned replacement unit may be configured in response to determination The input paramete information or output result information of above-mentioned object module, which exist, to be updated, by the defeated of pre-stored above-mentioned object module Enter parameter information or exports input paramete information or output result letter that result information replaces with updated above-mentioned object module Breath.
In some optional implementations of the present embodiment, above-mentioned model server can also call client with model Communication connection.Above- mentioned information storage device 500 further includes query unit and input unit (not shown).Wherein, above-mentioned to look into Asking unit may be configured in response to receiving title that above-mentioned model calling client is sent, comprising model to be called Model call request, inquires the input paramete information of above-mentioned model to be called, and the input paramete information inquired is back to Above-mentioned model calls client.Above-mentioned input unit may be configured to receive the input ginseng that above-mentioned model calls client to send Number, is input to above-mentioned model to be called for above-mentioned input parameter, obtains output corresponding with above-mentioned input parameter as a result, and will Above-mentioned output result is back to above-mentioned model and calls client.
The device provided by the above embodiment of the application periodically determines management service by the first determination unit 501 The model information stored in device with the presence or absence of update, so as to resolution unit 502 determine model information deposit in the updated, determination deposit In the model of update, then local whether store determined using identified model as object module for the second determination unit 503. There is the PMML file of object module, so that storage unit 504 is after the PMML file for determining local not stored above-mentioned object module, The PMML file that object module is downloaded and stored from above-mentioned Cloud Server, so as to store newest model in time, in business Newest model is directly provided when changing, do not need to carry out the training of model when business changes and joins model The operations such as number write-in source code, improve the flexibility of model deployment.
Below with reference to Fig. 6, it illustrates the computer systems 600 for the server for being suitable for being used to realize the embodiment of the present application Structural schematic diagram.Server shown in Fig. 6 is only an example, should not function and use scope band to the embodiment of the present application Carry out any restrictions.
As shown in fig. 6, computer system 600 includes central processing unit (CPU) 601, it can be read-only according to being stored in Program in memory (ROM) 602 or be loaded into the program in random access storage device (RAM) 603 from storage section 608 and Execute various movements appropriate and processing.In RAM 603, also it is stored with system 600 and operates required various programs and data. CPU 601, ROM 602 and RAM 603 are connected with each other by bus 604.Input/output (I/O) interface 605 is also connected to always Line 604.
I/O interface 605 is connected to lower component: the importation 606 including keyboard, mouse etc.;It is penetrated including such as cathode The output par, c 607 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 608 including hard disk etc.; And the communications portion 609 of the network interface card including LAN card, modem etc..Communications portion 609 via such as because The network of spy's net executes communication process.Driver 610 is also connected to I/O interface 605 as needed.Detachable media 611, such as Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 610, in order to read from thereon Computer program be mounted into storage section 608 as needed.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium On computer program, which includes the program code for method shown in execution flow chart.In such reality It applies in example, which can be downloaded and installed from network by communications portion 609, and/or from detachable media 611 are mounted.When the computer program is executed by central processing unit (CPU) 601, limited in execution the present processes Above-mentioned function.It should be noted that computer-readable medium described herein can be computer-readable signal media or Computer readable storage medium either the two any combination.Computer readable storage medium for example can be --- but Be not limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination. The more specific example of computer readable storage medium can include but is not limited to: have one or more conducting wires electrical connection, Portable computer diskette, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only deposit Reservoir (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory Part or above-mentioned any appropriate combination.In this application, computer readable storage medium, which can be, any include or stores The tangible medium of program, the program can be commanded execution system, device or device use or in connection.And In the application, computer-readable signal media may include in a base band or the data as the propagation of carrier wave a part are believed Number, wherein carrying computer-readable program code.The data-signal of this propagation can take various forms, including but not It is limited to electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer Any computer-readable medium other than readable storage medium storing program for executing, the computer-readable medium can send, propagate or transmit use In by the use of instruction execution system, device or device or program in connection.Include on computer-readable medium Program code can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc., Huo Zheshang Any appropriate combination stated.
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the application, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction Combination realize.
Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hard The mode of part is realized.Described unit also can be set in the processor, for example, can be described as: a kind of processor packet Include the first determination unit, resolution unit, the second determination unit and storage unit.Wherein, the title of these units is in certain situation Under do not constitute restriction to the unit itself, for example, the first determination unit is also described as " periodically determining management The model information stored in server is with the presence or absence of the unit updated ".
As on the other hand, present invention also provides a kind of computer-readable medium, which be can be Included in device described in above-described embodiment;It is also possible to individualism, and without in the supplying device.Above-mentioned calculating Machine readable medium carries one or more program, when said one or multiple programs are executed by the device, so that should Device: periodically determine the model information stored in the management server with the presence or absence of update;In response to determining model letter Breath, which exists, to be updated, and is parsed to the updated model information, is determined the model for existing and updating;Using identified model as Object module determines the local PMML file for whether being stored with the object module;In response to determining local not stored target mould The PMML file of the object module is downloaded from Cloud Server and stored to the PMML file of type.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.Those skilled in the art Member is it should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic Scheme, while should also cover in the case where not departing from foregoing invention design, it is carried out by above-mentioned technical characteristic or its equivalent feature Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed herein Can technical characteristic replaced mutually and the technical solution that is formed.

Claims (12)

1. a kind of information storage means for model server, which is characterized in that the model server takes with management respectively Business device and Cloud Server communication connection, the management server and the Cloud Server communicate to connect, and the management server is used In storage model information, the Cloud Server is used for the oracle model markup language PMML file of storage model, the method packet It includes:
Periodically determine the model information stored in the management server with the presence or absence of update;
Exist in response to the determination model information and update, determine that the updated model information is parsed, determines and exist The model of update;
Using identified model as object module, the local PMML file for whether being stored with the object module is determined;
In response to determining the PMML file of the local not stored object module, is downloaded from the Cloud Server and store the mesh Mark the PMML file of model.
2. information storage means according to claim 1, which is characterized in that described not stored in response to determination local The PMML file of the object module is downloaded from the Cloud Server and stored to the PMML file for stating object module, comprising:
In response to determining the local not stored PMML file for having the object module, the target mould is downloaded from the Cloud Server The PMML file of type, and with the entitled key of the object module, it is value with the content in the PMML file of the object module, It is stored in the form of key-value pair into the dictionary container of memory.
3. information storage means according to claim 1, which is characterized in that the model information include: model title, Version number, input paramete information and output result information.
4. information storage means according to claim 3, which is characterized in that download and deposit from the Cloud Server described After the PMML file for storing up the object module, the method also includes:
The input paramete information and output result information for determining the object module respectively are with the presence or absence of update;
Input paramete information or output result information in response to the determination object module, which exist, to be updated, by pre-stored institute The input paramete information or output result information of stating object module replace with the input parameter letter of the updated object module Breath or output result information.
5. information storage means described in one of -4 according to claim 1, which is characterized in that the model server also with model Call client communication connection;And
The method also includes:
In response to receiving the model call request of title that the model calling client is sent, comprising model to be called, The input paramete information of the model to be called is inquired, and the input paramete information inquired is back to the model and calls visitor Family end;
The input parameter that the model calls client to send is received, the input parameter is input to the model to be called, Output corresponding with the input parameter is obtained as a result, and the output result is back to the model calling client.
6. a kind of information-storing device for model server, which is characterized in that the model server takes with management respectively Business device and Cloud Server communication connection, the management server and the Cloud Server communicate to connect, and the management server is used In storage model information, the Cloud Server is used for the oracle model markup language PMML file of storage model, described device packet It includes:
First determination unit is configured to periodically determine the model information stored in the management server with the presence or absence of more Newly;
Resolution unit, is configured to exist in response to the determination model information and updates, to the updated model information into Row parsing, determines the model for existing and updating;
Second determination unit is configured to determine locally whether be stored with the mesh using identified model as object module Mark the PMML file of model;
Storage unit is configured to the PMML file in response to determining the local not stored object module, from the cloud service Device is downloaded and stores the PMML file of the object module.
7. information-storing device according to claim 6, which is characterized in that the storage unit is further configured to:
In response to determining the local not stored PMML file for having the object module, the target mould is downloaded from the Cloud Server The PMML file of type, and with the entitled key of the object module, it is value with the content in the PMML file of the object module, It is stored in the form of key-value pair into the dictionary container of memory.
8. information-storing device according to claim 6, which is characterized in that the model information include: model title, Version number, input paramete information and output result information.
9. information-storing device according to claim 8, which is characterized in that described device further include:
Third determination unit is configured to determine the input paramete information of the object module respectively and whether exports result information There are updates;
Replacement unit is configured to exist more in response to the input paramete information or output result information of the determination object module Newly, the input paramete information of the pre-stored object module or output result information are replaced with into the updated target The input paramete information or output result information of model.
10. the information-storing device according to one of claim 6-9, which is characterized in that the model server also with mould Type calls client communication connection;And
Described device further include:
Query unit is configured in response to receiving name that the model calling client is sent, comprising model to be called The model call request of title, inquires the input paramete information of the model to be called, and the input paramete information inquired is returned It is back to the model and calls client;
Input unit is configured to receive the input parameter that the model calls client to send, the input parameter is inputted To the model to be called, output corresponding with the input parameter is obtained as a result, and the output result is back to institute It states model and calls client.
11. a kind of server, comprising:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real Now such as method as claimed in any one of claims 1 to 5.
12. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor Such as method as claimed in any one of claims 1 to 5 is realized when execution.
CN201710606581.7A 2017-07-24 2017-07-24 Information storage method and device Active CN109298831B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710606581.7A CN109298831B (en) 2017-07-24 2017-07-24 Information storage method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710606581.7A CN109298831B (en) 2017-07-24 2017-07-24 Information storage method and device

Publications (2)

Publication Number Publication Date
CN109298831A true CN109298831A (en) 2019-02-01
CN109298831B CN109298831B (en) 2021-05-25

Family

ID=65167079

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710606581.7A Active CN109298831B (en) 2017-07-24 2017-07-24 Information storage method and device

Country Status (1)

Country Link
CN (1) CN109298831B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022148226A1 (en) * 2021-01-08 2022-07-14 展讯通信(上海)有限公司 Model updating method and apparatus, storage medium, terminal and network device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070174290A1 (en) * 2006-01-19 2007-07-26 International Business Machines Corporation System and architecture for enterprise-scale, parallel data mining
CN102523246A (en) * 2011-11-23 2012-06-27 陈刚 Cloud computation treating system and method
CN102855131A (en) * 2011-06-30 2013-01-02 国际商业机器公司 Device and method for software configuration management
CN105446995A (en) * 2014-07-14 2016-03-30 富士通株式会社 Estimated data updating time method and device, data integration method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070174290A1 (en) * 2006-01-19 2007-07-26 International Business Machines Corporation System and architecture for enterprise-scale, parallel data mining
CN102855131A (en) * 2011-06-30 2013-01-02 国际商业机器公司 Device and method for software configuration management
CN102523246A (en) * 2011-11-23 2012-06-27 陈刚 Cloud computation treating system and method
CN105446995A (en) * 2014-07-14 2016-03-30 富士通株式会社 Estimated data updating time method and device, data integration method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022148226A1 (en) * 2021-01-08 2022-07-14 展讯通信(上海)有限公司 Model updating method and apparatus, storage medium, terminal and network device
CN114765771A (en) * 2021-01-08 2022-07-19 展讯通信(上海)有限公司 Model updating method and device, storage medium, terminal and network side equipment

Also Published As

Publication number Publication date
CN109298831B (en) 2021-05-25

Similar Documents

Publication Publication Date Title
CN109697075A (en) File updating method, system and device
CN107316083B (en) Method and apparatus for updating deep learning model
CN109542445A (en) A kind of method and apparatus that Android plug-in unit melts hair
CN109375918A (en) Interface rendering method, device, electronic equipment and the storage medium of small routine
CN109814881A (en) Method and apparatus for disposing data-base cluster
CN108337314B (en) Distributed system, information processing method and device for primary server
CN109871388A (en) Data cache method, device, whole electronic equipment and storage medium
CN108846753A (en) Method and apparatus for handling data
CN108804402A (en) Report generating system based on big data platform and method
CN110427415A (en) Knowledge share method, device, system media and electronic equipment
CN109739526A (en) Code update method and device
CN109359281A (en) Dynamic list generation method and device
CN109241033A (en) The method and apparatus for creating real-time data warehouse
CN111818194A (en) Domain name based access system and method
CN109766127A (en) Method for updating application version information
CN110365745A (en) Data processing system, method, apparatus, server and computer-readable medium
CN108733399A (en) The method and apparatus that dynamic updates configuration data
CN109213536A (en) Resource exhibition method, resource show configuration method, device and the equipment of class control
CN108984564A (en) Data-storage system, method and apparatus
CN110109983A (en) A kind of method and apparatus operating Redis database
CN110223179A (en) The data processing method of fund, device, system, medium
CN109766392A (en) Data processing method and device
CN109344152A (en) Data processing method, device, electronic equipment and storage medium
CN109240916A (en) Information output controlling method, device and computer readable storage medium
US20220245581A1 (en) Method and apparatus for sharing delivery box

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant